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.001258/0.001258, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002195/0.002195, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 59.69 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09553, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004116/0.09968, allocations: 2.91 MB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.1011, allocations: 0.7088 MB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003002/0.1014, allocations: 8 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.1018, allocations: 59.38 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.1021, allocations: 91.19 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.1024, allocations: 87.83 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005004/0.1029, allocations: 374.5 kB / 361.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.1032, allocations: 161.3 kB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003517/0.1036, allocations: 143.5 kB / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.1039, allocations: 155.3 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.1039, allocations: 32 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/0.104, allocations: 32 kB / 362.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.277e-05/0.1041, allocations: 71.75 kB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.1043, allocations: 179.1 kB / 362.6 MB, free: 9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.1047, allocations: 378.9 kB / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1047, allocations: 0 / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1047, allocations: 0 / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.1047, allocations: 0 / 362.9 MB, free: 8.629 MB / 302.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.0009967/0.1057, allocations: 0.6043 MB / 363.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1058, allocations: 12.03 kB / 363.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.199e-05/0.1058, allocations: 70.72 kB / 363.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.1059, allocations: 40.47 kB / 363.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.1063, allocations: 255.8 kB / 363.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1063, allocations: 21.03 kB / 363.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.1063, allocations: 32.38 kB / 364 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.1068, allocations: 282.2 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1069, allocations: 0 / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.1069, allocations: 8 kB / 364.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1069, allocations: 12 kB / 364.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.1074, allocations: 210.5 kB / 364.5 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.1089, allocations: 0.979 MB / 365.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.1092, allocations: 162.6 kB / 365.6 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.1094, allocations: 80.81 kB / 365.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.1095, allocations: 4 kB / 365.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.1095, allocations: 34.5 kB / 365.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.572e-06/0.1095, allocations: 0 / 365.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005528/0.1101, allocations: 213.6 kB / 365.9 MB, free: 5.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.1101, allocations: 55.41 kB / 366 MB, free: 5.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1103, allocations: 206.8 kB / 366.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1103, allocations: 29.7 kB / 366.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1105, allocations: 192 kB / 366.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.1105, allocations: 78.92 kB / 366.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.446e-05/0.1106, allocations: 41.7 kB / 366.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1107, allocations: 334.8 kB / 366.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.1109, allocations: 59.95 kB / 366.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.1111, allocations: 122.4 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.1115, allocations: 181.8 kB / 367.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1115, allocations: 7.938 kB / 367.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004633/0.1119, allocations: 245.2 kB / 367.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.112, allocations: 8 kB / 367.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.112, allocations: 0 / 367.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.112, allocations: 4 kB / 367.5 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.1123, allocations: 59.91 kB / 367.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1123, allocations: 3.984 kB / 367.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.1125, allocations: 31.69 kB / 367.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1125, allocations: 4.125 kB / 367.6 MB, free: 3.707 MB / 302.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.0001402/0.1126, allocations: 154.8 kB / 367.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.1127, allocations: 27.8 kB / 367.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.1131, allocations: 181.8 kB / 367.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1131, allocations: 4 kB / 367.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1131, allocations: 0 / 367.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1132, allocations: 3.984 kB / 367.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000374/0.1135, allocations: 325.3 kB / 368.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1136, allocations: 7.938 kB / 368.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.1138, allocations: 47.91 kB / 368.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.1139, allocations: 7.984 kB / 368.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.1139, allocations: 7.938 kB / 368.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1139, allocations: 0 / 368.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1139, allocations: 0 / 368.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006105/0.1145, allocations: 347.1 kB / 368.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.1146, allocations: 108.8 kB / 368.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.1147, allocations: 0 / 368.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.1148, allocations: 15.98 kB / 368.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.1149, allocations: 19.97 kB / 368.8 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1149, allocations: 4 kB / 368.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.1151, allocations: 148.6 kB / 368.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1151, allocations: 0 / 368.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.1154, allocations: 75.75 kB / 369 MB, free: 2.152 MB / 302.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.0009007/0.1163, allocations: 0.8785 MB / 369.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004431/0.1168, allocations: 171.8 kB / 370.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1168, allocations: 0 / 370.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.117, allocations: 67.91 kB / 370.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.1174, allocations: 36.19 kB / 370.2 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1436/0.2609, allocations: 2.683 MB / 372.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.2612, allocations: 0.7715 MB / 373.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.2613, allocations: 20.66 kB / 373.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.2614, allocations: 95.84 kB / 373.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2614, allocations: 3.938 kB / 373.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.2845, allocations: 4.42 MB / 378.1 MB, free: 17.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.634/7.919, allocations: 21.08 kB / 378.2 MB, free: 17.62 MB / 302.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.0.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