Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 104.7 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1978/0.1978, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 69.19 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.0907, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.002564/0.0933, allocations: 1.698 MB / 471.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001364/0.09345, allocations: 79.55 kB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.436e-05/0.0935, allocations: 4 kB / 471.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.15e-05/0.09356, allocations: 19.86 kB / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.94e-05/0.09363, allocations: 19.78 kB / 471.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.271e-05/0.09372, allocations: 27.97 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.09383, allocations: 95.59 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.09398, allocations: 59.97 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.795e-05/0.09403, allocations: 35.92 kB / 471.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.54e-05/0.09411, allocations: 51.77 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.09413, allocations: 8 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.012e-05/0.09416, allocations: 12 kB / 471.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.355e-05/0.09419, allocations: 23.92 kB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.937e-05/0.09424, allocations: 47.75 kB / 471.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.09437, allocations: 119.9 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09438, allocations: 0 / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09439, allocations: 0 / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.0944, allocations: 4 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004157/0.09482, allocations: 399.3 kB / 472 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.09486, allocations: 19.95 kB / 472.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.09492, allocations: 42.75 kB / 472.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.09495, allocations: 12.84 kB / 472.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.09506, allocations: 176.3 kB / 472.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.09508, allocations: 12.61 kB / 472.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.0951, allocations: 16.31 kB / 472.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.0953, allocations: 131.4 kB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.09532, allocations: 3.938 kB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.09534, allocations: 4 kB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.09535, allocations: 4 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.09549, allocations: 55.98 kB / 472.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006992/0.09619, allocations: 0.7312 MB / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.98e-05/0.09628, allocations: 173.1 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.662e-05/0.09631, allocations: 80.14 kB / 473.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.09634, allocations: 79.28 kB / 473.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.09639, allocations: 109.8 kB / 473.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.09639, allocations: 0 / 473.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.145e-05/0.09646, allocations: 37.61 kB / 473.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.09652, allocations: 126.7 kB / 473.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.09664, allocations: 156 kB / 474 MB, free: 9.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.09666, allocations: 25.7 kB / 474 MB, free: 9.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.947e-05/0.09673, allocations: 119.7 kB / 474.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-06/0.09674, allocations: 4 kB / 474.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.09678, allocations: 17.72 kB / 474.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.09688, allocations: 330.7 kB / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.09691, allocations: 4 kB / 474.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.294e-05/0.09694, allocations: 41.16 kB / 474.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.866e-05/0.09701, allocations: 61.11 kB / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.09702, allocations: 4 kB / 474.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001287/0.09715, allocations: 73.47 kB / 474.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.09717, allocations: 4 kB / 474.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.09718, allocations: 4.188 kB / 474.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.0972, allocations: 4 kB / 474.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.958e-05/0.09726, allocations: 11.94 kB / 474.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.09728, allocations: 7.984 kB / 474.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.904e-05/0.09733, allocations: 15.78 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.09734, allocations: 3.938 kB / 474.7 MB, free: 8.605 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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 9.073e-05/0.09744, allocations: 201.1 kB / 474.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/0.0975, allocations: 108.9 kB / 475 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.09755, allocations: 108.9 kB / 475.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.617e-05/0.0976, allocations: 176.3 kB / 475.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-05/0.09767, allocations: 192.2 kB / 475.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.449e-05/0.09773, allocations: 180.3 kB / 475.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.09797, allocations: 441.1 kB / 476.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-05/0.09801, allocations: 105 kB / 476.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.09805, allocations: 105.1 kB / 476.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.725e-05/0.09811, allocations: 184.2 kB / 476.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.09816, allocations: 184.2 kB / 476.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.484e-05/0.09822, allocations: 180.2 kB / 476.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.266e-05/0.09828, allocations: 176.3 kB / 477 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.09841, allocations: 319.6 kB / 477.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.137e-05/0.09848, allocations: 186 kB / 477.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.232e-05/0.09856, allocations: 188.2 kB / 477.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.09864, allocations: 101 kB / 477.8 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.09871, allocations: 184.2 kB / 477.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.09875, allocations: 112.9 kB / 478.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.389e-05/0.09882, allocations: 107.3 kB / 478.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09883, allocations: 0 / 478.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.09908, allocations: 15.94 kB / 478.2 MB, free: 4.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0003493/0.09943, allocations: 0.8125 MB / 479 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.584e-05/0.09951, allocations: 19.94 kB / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09952, allocations: 0 / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.182e-06/0.09952, allocations: 0 / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.09988, allocations: 470.3 kB / 479.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.1011, allocations: 1.593 MB / 481.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.1013, allocations: 0.6924 MB / 481.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.285e-05/0.1013, allocations: 7.984 kB / 481.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.1014, allocations: 23.44 kB / 481.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1014, allocations: 0 / 481.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.1175, allocations: 1.566 MB / 483.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.018/7.135, allocations: 8.844 kB / 483.4 MB, free: 15.61 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestGyrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches