Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 63.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2757, allocations: 50.53 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005338/0.2811, allocations: 2.92 MB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.2827, allocations: 0.701 MB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2829, allocations: 8 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.2831, allocations: 63.38 kB / 412.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.2833, allocations: 91.19 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2836, allocations: 79.89 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.2841, allocations: 382.4 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.2844, allocations: 157.3 kB / 413.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.2847, allocations: 143.5 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.2849, allocations: 163.3 kB / 413.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.285, allocations: 32 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.864e-05/0.285, allocations: 36 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.2851, allocations: 67.77 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.2853, allocations: 171.1 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004481/0.2857, allocations: 385.4 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2857, allocations: 0 / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2857, allocations: 0 / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2857, allocations: 0 / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009827/0.2867, allocations: 0.6118 MB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2868, allocations: 8.031 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.355e-05/0.2869, allocations: 70.72 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.2869, allocations: 36.7 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.2874, allocations: 267.8 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.2874, allocations: 25.03 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.2875, allocations: 32.36 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.288, allocations: 278.2 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.288, allocations: 0 / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.288, allocations: 16 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2881, allocations: 11.94 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.2885, allocations: 202.5 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.2901, allocations: 0.9677 MB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.2904, allocations: 165.9 kB / 416.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.2906, allocations: 84.75 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.2906, allocations: 3.938 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.2907, allocations: 34.56 kB / 416.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.336e-06/0.2907, allocations: 3.984 kB / 416.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005505/0.2912, allocations: 217.7 kB / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.2913, allocations: 55.41 kB / 417.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.2915, allocations: 214.7 kB / 417.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.2915, allocations: 29.7 kB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.2917, allocations: 188.4 kB / 417.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.043e-05/0.2918, allocations: 79.36 kB / 417.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.88e-05/0.2918, allocations: 49.7 kB / 417.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.292, allocations: 330.8 kB / 418.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.2922, allocations: 63.95 kB / 418.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.2924, allocations: 114 kB / 418.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.2927, allocations: 185.9 kB / 418.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2928, allocations: 3.938 kB / 418.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004625/0.2932, allocations: 249.2 kB / 418.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2932, allocations: 4 kB / 418.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.2933, allocations: 4 kB / 418.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2933, allocations: 0 / 418.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.2936, allocations: 63.89 kB / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2936, allocations: 4 kB / 418.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2937, allocations: 19.89 kB / 418.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.2938, allocations: 15.94 kB / 418.8 MB, free: 7.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.2939, allocations: 149.8 kB / 418.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.294, allocations: 19.86 kB / 418.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004234/0.2944, allocations: 197.6 kB / 419.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2944, allocations: 0 / 419.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2944, allocations: 4 kB / 419.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2944, allocations: 3.938 kB / 419.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.2948, allocations: 321.4 kB / 419.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2948, allocations: 4 kB / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.2951, allocations: 51.91 kB / 419.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2951, allocations: 0 / 419.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.2951, allocations: 8 kB / 419.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2951, allocations: 0 / 419.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2951, allocations: 0 / 419.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005924/0.2957, allocations: 359.1 kB / 419.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.2958, allocations: 96.91 kB / 420 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.549e-05/0.2959, allocations: 12.05 kB / 420 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.296, allocations: 11.98 kB / 420 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.2961, allocations: 11.98 kB / 420 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.2961, allocations: 4 kB / 420 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.2963, allocations: 152.6 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2963, allocations: 4 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.2966, allocations: 71.78 kB / 420.2 MB, free: 5.684 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.2976, allocations: 0.8867 MB / 421.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004182/0.298, allocations: 163.8 kB / 421.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2981, allocations: 0 / 421.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.2982, allocations: 71.91 kB / 421.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.2986, allocations: 36.17 kB / 421.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.3021, allocations: 2.711 MB / 424.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.3026, allocations: 0.7671 MB / 424.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.061e-05/0.3027, allocations: 21.94 kB / 424.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3028, allocations: 95.39 kB / 425 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of SimCode: time 1.964e-06/0.3028, allocations: 8 kB / 425 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.3307, allocations: 4.516 MB / 429.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.522, allocations: 3.984 kB / 429.5 MB, free: 12.35 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches