Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 47.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1295, allocations: 53.34 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002953/0.1325, allocations: 1.698 MB / 428 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.1335, allocations: 0.5532 MB / 428.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.999e-05/0.1336, allocations: 4 kB / 428.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.406e-05/0.1337, allocations: 11.86 kB / 428.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.1338, allocations: 31.72 kB / 428.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.134, allocations: 59.86 kB / 428.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.1342, allocations: 95.7 kB / 428.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.1343, allocations: 29.09 kB / 428.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.1345, allocations: 55.72 kB / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.613e-05/0.1345, allocations: 35.78 kB / 428.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.1346, allocations: 8 kB / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.699e-05/0.1346, allocations: 15.98 kB / 428.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.635e-05/0.1347, allocations: 19.92 kB / 428.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.614e-05/0.1347, allocations: 47.67 kB / 429 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.1349, allocations: 87.52 kB / 429 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1349, allocations: 0 / 429 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1349, allocations: 4 kB / 429 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1349, allocations: 4 kB / 429.1 MB, free: 2.051 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006344/0.1356, allocations: 407 kB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1356, allocations: 8.031 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.1357, allocations: 42.73 kB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.1358, allocations: 28.77 kB / 429.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.1361, allocations: 212.7 kB / 429.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.1362, allocations: 4.375 kB / 429.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.1362, allocations: 15.94 kB / 429.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.1364, allocations: 80.05 kB / 429.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1364, allocations: 0 / 429.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1364, allocations: 0 / 429.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1364, allocations: 0 / 429.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.1366, allocations: 47.91 kB / 429.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006109/0.1372, allocations: 415.9 kB / 430.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.1373, allocations: 58.62 kB / 430.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.28e-05/0.1374, allocations: 24.86 kB / 430.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.1374, allocations: 7.984 kB / 430.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1375, allocations: 34.56 kB / 430.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.173e-06/0.1375, allocations: 4 kB / 430.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000314/0.1378, allocations: 97.5 kB / 430.5 MB, free: 416 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1378, allocations: 55.41 kB / 430.6 MB, free: 348 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.138, allocations: 144.5 kB / 430.7 MB, free: 188 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.138, allocations: 29.7 kB / 430.7 MB, free: 152 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.1381, allocations: 104.1 kB / 430.8 MB, free: 44 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.1381, allocations: 23.94 kB / 430.9 MB, free: 20 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.305e-05/0.1381, allocations: 25.77 kB / 430.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1383, allocations: 322.7 kB / 431.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.19e-05/0.1384, allocations: 15.98 kB / 431.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-05/0.1384, allocations: 23.98 kB / 431.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.1385, allocations: 52.92 kB / 431.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1385, allocations: 0 / 431.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001829/0.1387, allocations: 97.48 kB / 431.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1387, allocations: 12 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1387, allocations: 0 / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1388, allocations: 0 / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.139, allocations: 35.97 kB / 431.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.139, allocations: 0 / 431.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.473e-05/0.139, allocations: 7.953 kB / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1391, allocations: 4.25 kB / 431.4 MB, free: 15.41 MB / 366.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 9.323e-05/0.1391, allocations: 113.8 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.1392, allocations: 19.89 kB / 431.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.1392, allocations: 12.3 kB / 431.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1392, allocations: 4 kB / 431.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1392, allocations: 0 / 431.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1392, allocations: 4 kB / 431.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.1394, allocations: 193.6 kB / 431.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1395, allocations: 7.875 kB / 431.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.1396, allocations: 19.98 kB / 431.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1396, allocations: 3.984 kB / 431.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1396, allocations: 0 / 431.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1396, allocations: 4 kB / 431.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1396, allocations: 0 / 431.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002966/0.1399, allocations: 199.5 kB / 432 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.14, allocations: 92.97 kB / 432.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.14, allocations: 4 kB / 432.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.1401, allocations: 4 kB / 432.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.1401, allocations: 3.984 kB / 432.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.1401, allocations: 8.062 kB / 432.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.814e-05/0.1402, allocations: 106.6 kB / 432.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1402, allocations: 3.938 kB / 432.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1404, allocations: 19.95 kB / 432.2 MB, free: 14.51 MB / 366.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.0005935/0.141, allocations: 0.7359 MB / 433 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.1412, allocations: 47.86 kB / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1412, allocations: 0 / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.233e-05/0.1413, allocations: 23.98 kB / 433.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.1416, allocations: 22.11 kB / 433.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.1441, allocations: 1.59 MB / 434.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.1445, allocations: 0.7002 MB / 435.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.421e-05/0.1445, allocations: 11.97 kB / 435.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.245e-05/0.1446, allocations: 27.44 kB / 435.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1446, allocations: 0 / 435.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.172, allocations: 2.325 MB / 437.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/7.91, allocations: 9.266 kB / 437.7 MB, free: 8.953 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.614737887997762]