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.001279/0.001279, allocations: 109 kB / 17.21 MB, free: 6.289 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.001257/0.001257, allocations: 194 kB / 18.12 MB, free: 5.383 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.344/1.344, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2017/0.2017, allocations: 44.18 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 72.98 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.0996, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.003274/0.1029, allocations: 1.772 MB / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001997/0.1031, allocations: 79.72 kB / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.572e-05/0.1032, allocations: 0 / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.645e-05/0.1033, allocations: 15.91 kB / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.811e-05/0.1034, allocations: 11.86 kB / 470.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001028/0.1035, allocations: 19.98 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.1037, allocations: 99.59 kB / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.1038, allocations: 48.28 kB / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.581e-05/0.1039, allocations: 35.94 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.623e-05/0.104, allocations: 47.77 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.104, allocations: 8 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.994e-05/0.1041, allocations: 8 kB / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.1041, allocations: 23.92 kB / 470.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.999e-05/0.1042, allocations: 51.67 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1043, allocations: 111.9 kB / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1043, allocations: 0 / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1043, allocations: 0 / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1044, allocations: 3.938 kB / 470.9 MB, free: 12.41 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.000565/0.1049, allocations: 407.4 kB / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.105, allocations: 8.031 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.105, allocations: 42.75 kB / 471.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.1051, allocations: 12.84 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.1052, allocations: 172.2 kB / 471.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.1053, allocations: 12.61 kB / 471.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.1053, allocations: 8.375 kB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.1055, allocations: 129.6 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1056, allocations: 7.938 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1056, allocations: 4 kB / 471.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1056, allocations: 4 kB / 471.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.1057, allocations: 59.92 kB / 471.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008266/0.1066, allocations: 0.7313 MB / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.407e-05/0.1066, allocations: 169.1 kB / 472.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.455e-05/0.1067, allocations: 80.14 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1067, allocations: 79.28 kB / 472.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.1068, allocations: 105.8 kB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.1068, allocations: 3.938 kB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.928e-05/0.1069, allocations: 33.61 kB / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.1069, allocations: 130.6 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1071, allocations: 160.6 kB / 473.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.1071, allocations: 33.7 kB / 473.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.392e-05/0.1072, allocations: 111.7 kB / 473.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-06/0.1072, allocations: 4 kB / 473.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.1072, allocations: 17.72 kB / 473.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1073, allocations: 322.8 kB / 473.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/0.1074, allocations: 8 kB / 473.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.88e-05/0.1074, allocations: 45.28 kB / 473.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/0.1075, allocations: 53.08 kB / 473.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1075, allocations: 4 kB / 473.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001625/0.1077, allocations: 81.47 kB / 473.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1077, allocations: 4 kB / 473.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1077, allocations: 0 / 473.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1077, allocations: 7.938 kB / 474 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.957e-05/0.1078, allocations: 11.98 kB / 474 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1078, allocations: 11.92 kB / 474 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.621e-05/0.1079, allocations: 11.78 kB / 474 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.1079, allocations: 12.17 kB / 474 MB, free: 9.059 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 0.0001159/0.108, allocations: 189.1 kB / 474.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.93e-05/0.1081, allocations: 108.9 kB / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.1082, allocations: 112.9 kB / 474.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.337e-05/0.1082, allocations: 184.2 kB / 474.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.309e-05/0.1083, allocations: 176.3 kB / 474.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-05/0.1084, allocations: 192.2 kB / 474.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.1087, allocations: 441.1 kB / 475.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.294e-05/0.1087, allocations: 101 kB / 475.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.343e-05/0.1088, allocations: 104.9 kB / 475.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.481e-05/0.1089, allocations: 176.3 kB / 475.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.221e-05/0.109, allocations: 188.2 kB / 475.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.05e-05/0.109, allocations: 180.2 kB / 476.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.96e-05/0.1091, allocations: 176.3 kB / 476.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.1093, allocations: 319.6 kB / 476.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1094, allocations: 186 kB / 476.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.541e-05/0.1095, allocations: 184.2 kB / 477 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.1096, allocations: 105 kB / 477.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.1097, allocations: 184.2 kB / 477.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.1097, allocations: 104.9 kB / 477.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.391e-05/0.1098, allocations: 113.1 kB / 477.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1098, allocations: 0 / 477.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.11, allocations: 23.88 kB / 477.5 MB, free: 5.363 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.0003382/0.1104, allocations: 0.813 MB / 478.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.607e-05/0.1105, allocations: 20.25 kB / 478.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1105, allocations: 4.062 kB / 478.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.1105, allocations: 0 / 478.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.1109, allocations: 0.5263 MB / 478.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.1122, allocations: 1.609 MB / 480.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.1125, allocations: 0.6965 MB / 481.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.289e-05/0.1125, allocations: 7.984 kB / 481.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.1126, allocations: 23.44 kB / 481.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1126, allocations: 0 / 481.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.123, allocations: 1.453 MB / 482.6 MB, free: 128 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.1232, allocations: 194.6 kB / 482.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.757, allocations: 0 / 482.8 MB, free: 15.87 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestGyrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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