Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001484/0.001484, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1997/0.1997, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002824/0.002824, allocations: 75.39 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1242, allocations: 62.45 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.002833/0.127, allocations: 1.724 MB / 481.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002114/0.1273, allocations: 67.73 kB / 481.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.439e-05/0.1274, allocations: 4 kB / 481.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.525e-05/0.1274, allocations: 15.84 kB / 481.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.902e-05/0.1275, allocations: 31.7 kB / 482 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.308e-05/0.1276, allocations: 27.97 kB / 482 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.1278, allocations: 95.59 kB / 482.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.1279, allocations: 55.97 kB / 482.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.917e-05/0.128, allocations: 39.86 kB / 482.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.364e-05/0.1281, allocations: 51.83 kB / 482.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.1281, allocations: 12 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.938e-05/0.1281, allocations: 12 kB / 482.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.628e-05/0.1282, allocations: 19.92 kB / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/0.1282, allocations: 51.73 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.1284, allocations: 123.8 kB / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1284, allocations: 0 / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1284, allocations: 0 / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1284, allocations: 0 / 482.4 MB, free: 2.871 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.0004338/0.1288, allocations: 403.4 kB / 482.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1289, allocations: 8.031 kB / 482.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.1289, allocations: 46.73 kB / 482.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.129, allocations: 12.84 kB / 482.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.1291, allocations: 168.3 kB / 483.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.1291, allocations: 12.61 kB / 483.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.1291, allocations: 12.31 kB / 483.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.1294, allocations: 133.6 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1294, allocations: 7.875 kB / 483.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1294, allocations: 11.98 kB / 483.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1294, allocations: 4 kB / 483.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.1295, allocations: 59.97 kB / 483.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007368/0.1303, allocations: 0.7234 MB / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.736e-05/0.1304, allocations: 165.1 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.732e-05/0.1304, allocations: 80.14 kB / 484.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.1304, allocations: 79.28 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.1305, allocations: 117.8 kB / 484.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.162e-06/0.1305, allocations: 0 / 484.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.794e-05/0.1305, allocations: 37.59 kB / 484.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1306, allocations: 126.7 kB / 484.6 MB, free: 484 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.1307, allocations: 148.1 kB / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.1308, allocations: 25.7 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.1308, allocations: 127.6 kB / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-06/0.1308, allocations: 0 / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.1309, allocations: 21.7 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.1311, allocations: 322.8 kB / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.696e-05/0.1311, allocations: 4 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.82e-05/0.1312, allocations: 49.08 kB / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.236e-05/0.1312, allocations: 57.12 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1312, allocations: 0 / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001344/0.1314, allocations: 85.41 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.1314, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1315, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1315, allocations: 4 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.682e-05/0.1315, allocations: 11.98 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.1316, allocations: 4 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.758e-05/0.1316, allocations: 11.78 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.1316, allocations: 7.938 kB / 485.5 MB, free: 15.53 MB / 366.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.0001424/0.1318, allocations: 197.3 kB / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-05/0.1318, allocations: 105 kB / 485.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.773e-05/0.1319, allocations: 116.8 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.507e-05/0.1319, allocations: 176.3 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.186e-05/0.132, allocations: 176.3 kB / 486.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-05/0.1321, allocations: 196.2 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.1323, allocations: 437.2 kB / 486.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.434e-05/0.1324, allocations: 104.9 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-05/0.1324, allocations: 105 kB / 487.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.81e-05/0.1325, allocations: 176.3 kB / 487.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.1326, allocations: 188.1 kB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-05/0.1326, allocations: 184.3 kB / 487.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.953e-05/0.1327, allocations: 180.2 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.1328, allocations: 315.6 kB / 488.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.1329, allocations: 186 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.133, allocations: 188.2 kB / 488.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.041e-05/0.1331, allocations: 108.9 kB / 488.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.066e-05/0.1331, allocations: 176.3 kB / 488.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.1332, allocations: 113 kB / 488.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.706e-05/0.1332, allocations: 111.3 kB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1332, allocations: 0 / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.1335, allocations: 15.94 kB / 489 MB, free: 11.83 MB / 366.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.0003324/0.1338, allocations: 0.8087 MB / 489.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.119e-05/0.1339, allocations: 23.92 kB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1339, allocations: 384 / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.1339, allocations: 4 kB / 489.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.1343, allocations: 463.6 kB / 490.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.1355, allocations: 1.587 MB / 491.8 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.1358, allocations: 0.7001 MB / 492.5 MB, free: 8.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.361e-05/0.1358, allocations: 4 kB / 492.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.1359, allocations: 23.42 kB / 492.6 MB, free: 8.062 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1359, allocations: 4 kB / 492.6 MB, free: 8.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.1516, allocations: 1.56 MB / 494.1 MB, free: 6.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.37, allocations: 13.06 kB / 494.1 MB, free: 6.551 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_Analog_TestGyrator.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches