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.001909/0.001909, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002337/0.002337, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.423/1.423, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001615/0.001615, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09729, allocations: 53.33 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003172/0.1005, allocations: 1.708 MB / 428 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1016, allocations: 0.5533 MB / 428.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.584e-05/0.1017, allocations: 7.875 kB / 428.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.1018, allocations: 11.88 kB / 428.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.102, allocations: 23.8 kB / 428.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.1022, allocations: 59.86 kB / 428.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.1024, allocations: 99.69 kB / 428.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1025, allocations: 25.09 kB / 428.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.1027, allocations: 47.73 kB / 428.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.1028, allocations: 47.77 kB / 428.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.1028, allocations: 8 kB / 428.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.1029, allocations: 11.98 kB / 428.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.1029, allocations: 19.92 kB / 428.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.021e-05/0.103, allocations: 39.75 kB / 429 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.1032, allocations: 95.45 kB / 429.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1032, allocations: 3.984 kB / 429.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1032, allocations: 0 / 429.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.1032, allocations: 0 / 429.1 MB, free: 2.039 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.0005986/0.1038, allocations: 415 kB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1038, allocations: 8.031 kB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.1039, allocations: 38.75 kB / 429.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.104, allocations: 24.83 kB / 429.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.1043, allocations: 212.6 kB / 429.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1043, allocations: 4.375 kB / 429.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.1044, allocations: 11.94 kB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.1046, allocations: 77.66 kB / 429.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1046, allocations: 8 kB / 429.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1046, allocations: 4 kB / 429.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1046, allocations: 0 / 429.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.1047, allocations: 43.91 kB / 429.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.1053, allocations: 408 kB / 430.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.1054, allocations: 66.52 kB / 430.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.119e-05/0.1055, allocations: 28.89 kB / 430.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.1055, allocations: 0 / 430.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.1056, allocations: 34.56 kB / 430.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.1056, allocations: 0 / 430.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002979/0.1059, allocations: 105.5 kB / 430.5 MB, free: 400 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.1059, allocations: 51.41 kB / 430.6 MB, free: 336 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.106, allocations: 144.7 kB / 430.7 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.106, allocations: 29.7 kB / 430.7 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.766e-05/0.1061, allocations: 108.1 kB / 430.8 MB, free: 28 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.1061, allocations: 23.94 kB / 430.9 MB, free: 4 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.1062, allocations: 21.75 kB / 430.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1063, allocations: 318.8 kB / 431.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.257e-05/0.1064, allocations: 27.88 kB / 431.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.693e-05/0.1065, allocations: 23.97 kB / 431.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.1066, allocations: 48.84 kB / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1066, allocations: 0 / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001893/0.1068, allocations: 97.64 kB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1068, allocations: 8 kB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1068, allocations: 0 / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1068, allocations: 0 / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.107, allocations: 39.97 kB / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.107, allocations: 0 / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.948e-05/0.1071, allocations: 7.953 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1071, allocations: 0 / 431.4 MB, free: 15.4 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.456e-05/0.1072, allocations: 117.8 kB / 431.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.1072, allocations: 11.89 kB / 431.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.831e-05/0.1073, allocations: 20.3 kB / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1073, allocations: 0 / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1073, allocations: 4 kB / 431.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1073, allocations: 0 / 431.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.1075, allocations: 193.6 kB / 431.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1075, allocations: 7.938 kB / 431.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.1077, allocations: 27.91 kB / 431.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1077, allocations: 0 / 431.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.1077, allocations: 0 / 431.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1077, allocations: 256 / 431.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.1077, allocations: 4 kB / 431.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.108, allocations: 203.5 kB / 432 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.073e-05/0.1081, allocations: 92.97 kB / 432.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.1081, allocations: 0 / 432.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.459e-05/0.1082, allocations: 4 kB / 432.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.1082, allocations: 7.984 kB / 432.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.1082, allocations: 0 / 432.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.275e-05/0.1083, allocations: 114.4 kB / 432.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1083, allocations: 64 / 432.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002396/0.1085, allocations: 19.95 kB / 432.3 MB, free: 14.49 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.0006099/0.1091, allocations: 0.7358 MB / 433 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001757/0.1093, allocations: 39.97 kB / 433 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1093, allocations: 8 kB / 433 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.855e-05/0.1094, allocations: 27.94 kB / 433.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.1097, allocations: 26.09 kB / 433.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.1116, allocations: 1.574 MB / 434.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1119, allocations: 0.7041 MB / 435.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.626e-05/0.112, allocations: 7.984 kB / 435.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.1121, allocations: 31.42 kB / 435.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1121, allocations: 0 / 435.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.1386, allocations: 2.336 MB / 437.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.771/7.91, allocations: 4.062 kB / 437.7 MB, free: 8.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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.432315781945363]