Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001811/0.001812, allocations: 127.6 kB / 17.75 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001415, allocations: 186.9 kB / 20.68 MB, free: 2.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002024, allocations: 51.92 kB / 357.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1282, allocations: 49.44 MB / 406.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003533/0.1318, allocations: 1.677 MB / 408.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009461/0.1328, allocations: 494.7 kB / 409.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.499e-05/0.1329, allocations: 3.938 kB / 409.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.133, allocations: 15.86 kB / 409.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1332, allocations: 27.8 kB / 409.1 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001802/0.1334, allocations: 39.94 kB / 409.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.1336, allocations: 99.69 kB / 409.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.1338, allocations: 45.3 kB / 409.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.1339, allocations: 39.8 kB / 409.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.761e-05/0.134, allocations: 43.77 kB / 409.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.134, allocations: 4 kB / 409.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.883e-05/0.134, allocations: 8 kB / 409.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.1341, allocations: 19.92 kB / 409.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.737e-05/0.1342, allocations: 39.73 kB / 409.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.1343, allocations: 83.58 kB / 409.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1343, allocations: 4 kB / 409.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1344, allocations: 4 kB / 409.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1344, allocations: 3.938 kB / 409.6 MB, free: 4.699 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000631/0.135, allocations: 414.9 kB / 410 MB, free: 4.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1351, allocations: 8.031 kB / 410 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.1351, allocations: 38.75 kB / 410 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.1352, allocations: 8.891 kB / 410 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.1355, allocations: 213.6 kB / 410.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1355, allocations: 8 kB / 410.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.1355, allocations: 8 kB / 410.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.1357, allocations: 81.59 kB / 410.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1357, allocations: 0 / 410.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.1357, allocations: 4 kB / 410.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1358, allocations: 3.938 kB / 410.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.1359, allocations: 39.92 kB / 410.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.1365, allocations: 412 kB / 410.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.1367, allocations: 62.53 kB / 410.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.562e-05/0.1367, allocations: 32.89 kB / 410.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.1368, allocations: 3.938 kB / 410.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.1368, allocations: 30.56 kB / 410.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.1368, allocations: 4 kB / 410.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002931/0.1371, allocations: 101.5 kB / 411 MB, free: 3.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.1372, allocations: 51.41 kB / 411 MB, free: 3.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.1373, allocations: 143.3 kB / 411.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.1373, allocations: 25.7 kB / 411.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.741e-05/0.1374, allocations: 104.1 kB / 411.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.1374, allocations: 27.92 kB / 411.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.1375, allocations: 21.72 kB / 411.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1377, allocations: 322.8 kB / 411.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.71e-05/0.1377, allocations: 15.98 kB / 411.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.197e-05/0.1378, allocations: 20 kB / 411.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.1379, allocations: 52.92 kB / 411.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1379, allocations: 0 / 411.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001747/0.1381, allocations: 93.55 kB / 411.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1381, allocations: 15.94 kB / 411.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1381, allocations: 0 / 411.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.1382, allocations: 0 / 411.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.1384, allocations: 36.22 kB / 411.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1384, allocations: 0 / 411.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.1385, allocations: 11.95 kB / 411.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.1385, allocations: 3.984 kB / 411.9 MB, free: 2.086 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (7): * Single equations (assignments): 7 * 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.0001253/0.1386, allocations: 121.8 kB / 412 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.1387, allocations: 11.95 kB / 412.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.1387, allocations: 12.31 kB / 412.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1387, allocations: 0 / 412.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1387, allocations: 0 / 412.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1387, allocations: 0 / 412.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.139, allocations: 201.5 kB / 412.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.139, allocations: 0 / 412.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.1391, allocations: 31.91 kB / 412.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1392, allocations: 0 / 412.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1392, allocations: 0 / 412.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1392, allocations: 0 / 412.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1392, allocations: 4 kB / 412.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.1395, allocations: 203.4 kB / 412.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.706e-05/0.1396, allocations: 96.92 kB / 412.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1396, allocations: 0 / 412.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.18e-05/0.1397, allocations: 3.984 kB / 412.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.1397, allocations: 8 kB / 412.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1397, allocations: 4.062 kB / 412.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.698e-05/0.1398, allocations: 113.7 kB / 412.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1398, allocations: 0 / 412.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1401, allocations: 12 kB / 412.7 MB, free: 1.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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.0006439/0.1407, allocations: 0.7358 MB / 413.5 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001791/0.1409, allocations: 51.97 kB / 413.5 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1409, allocations: 0 / 413.5 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.006e-05/0.141, allocations: 23.94 kB / 413.5 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1413, allocations: 28.16 kB / 413.6 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.1434, allocations: 1.581 MB / 415.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.1438, allocations: 0.7002 MB / 415.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.612e-05/0.1439, allocations: 7.984 kB / 415.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.56e-05/0.1439, allocations: 27.44 kB / 415.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.144, allocations: 0 / 415.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02624/0.1702, allocations: 2.299 MB / 418.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/7.928, allocations: 6.312 kB / 418.2 MB, free: 11.66 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.774504582048394]