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.0008972/0.0008972, allocations: 80.06 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0007942/0.0007942, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8788/0.8788, allocations: 173.3 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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 1.773e-06/1.773e-06, allocations: 0 / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.833e-05, allocations: 3.688 kB / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00258/0.002599, allocations: 1.634 MB / 320 MB, free: 4.598 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006141/0.003213, allocations: 462.9 kB / 320.5 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.003283, allocations: 7.938 kB / 320.5 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.198e-05/0.003375, allocations: 11.86 kB / 320.5 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.003547, allocations: 23.78 kB / 320.5 MB, free: 4.102 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.003722, allocations: 63.73 kB / 320.6 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.003856, allocations: 103.6 kB / 320.7 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.647e-05/0.003953, allocations: 25.27 kB / 320.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.178e-05/0.004035, allocations: 55.89 kB / 320.8 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.265e-05/0.004097, allocations: 31.89 kB / 320.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.004121, allocations: 8 kB / 320.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.004133, allocations: 8 kB / 320.8 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.074e-05/0.004184, allocations: 23.84 kB / 320.9 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.181e-05/0.004216, allocations: 23.92 kB / 320.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.004332, allocations: 95.62 kB / 321 MB, free: 3.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.004334, allocations: 4 kB / 321 MB, free: 3.664 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.004336, allocations: 0 / 321 MB, free: 3.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.309e-06/0.00434, allocations: 0 / 321 MB, free: 3.664 MB / 282.7 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.0004192/0.004759, allocations: 333.1 kB / 321.3 MB, free: 3.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.004794, allocations: 8.922 kB / 321.3 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.079e-05/0.004824, allocations: 38.75 kB / 321.3 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.679e-05/0.004851, allocations: 12.84 kB / 321.4 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.005025, allocations: 157.3 kB / 321.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.005034, allocations: 8.125 kB / 321.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.005057, allocations: 19.89 kB / 321.5 MB, free: 3.043 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.005188, allocations: 74.5 kB / 321.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.005195, allocations: 0 / 321.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.005205, allocations: 4 kB / 321.6 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.005211, allocations: 4 kB / 321.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.782e-05/0.005279, allocations: 35.97 kB / 321.7 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.005645, allocations: 307.7 kB / 322 MB, free: 2.578 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.005746, allocations: 58.59 kB / 322 MB, free: 2.512 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.881e-05/0.005784, allocations: 32.83 kB / 322 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.005799, allocations: 4 kB / 322.1 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.005815, allocations: 30.56 kB / 322.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 9.41e-07/0.005816, allocations: 0 / 322.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001879/0.006004, allocations: 101.5 kB / 322.2 MB, free: 2.328 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.659e-05/0.00603, allocations: 55.41 kB / 322.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.006338, allocations: 137.8 kB / 322.4 MB, free: 2.117 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.006347, allocations: 29.7 kB / 322.4 MB, free: 2.082 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.006393, allocations: 116.1 kB / 322.5 MB, free: 1.965 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.006415, allocations: 15.89 kB / 322.5 MB, free: 1.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.006443, allocations: 17.72 kB / 322.5 MB, free: 1.926 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.044e-05/0.006514, allocations: 322.8 kB / 322.9 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.493e-05/0.006548, allocations: 23.92 kB / 322.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.273e-05/0.006581, allocations: 16 kB / 322.9 MB, free: 1.562 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.994e-05/0.006651, allocations: 52.83 kB / 323 MB, free: 1.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.006653, allocations: 3.938 kB / 323 MB, free: 1.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.528e-05/0.006748, allocations: 93.67 kB / 323 MB, free: 1.406 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.006758, allocations: 8 kB / 323.1 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.006762, allocations: 80 / 323.1 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.006773, allocations: 0 / 323.1 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.006902, allocations: 43.91 kB / 323.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.006907, allocations: 3.984 kB / 323.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.619e-05/0.006933, allocations: 11.92 kB / 323.1 MB, free: 1.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.00694, allocations: 0 / 323.1 MB, free: 1.34 MB / 282.7 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 5.86e-05/0.006998, allocations: 117.8 kB / 323.2 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.007014, allocations: 15.89 kB / 323.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.007033, allocations: 8.469 kB / 323.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.007034, allocations: 0 / 323.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.007037, allocations: 7.938 kB / 323.3 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.00704, allocations: 3.984 kB / 323.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.007158, allocations: 157 kB / 323.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.00716, allocations: 7.938 kB / 323.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.315e-05/0.007223, allocations: 19.98 kB / 323.4 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.007225, allocations: 3.984 kB / 323.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.007232, allocations: 0 / 323.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.007233, allocations: 4 kB / 323.5 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.007235, allocations: 4 kB / 323.5 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.007406, allocations: 211.4 kB / 323.7 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.194e-05/0.007418, allocations: 11.88 kB / 323.7 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.00743, allocations: 4.031 kB / 323.7 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.815e-05/0.007468, allocations: 0 / 323.7 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.007499, allocations: 11.98 kB / 323.7 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.007503, allocations: 0 / 323.7 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.00755, allocations: 106.3 kB / 323.8 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00755, allocations: 0 / 323.8 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001463/0.007697, allocations: 16.06 kB / 323.8 MB, free: 0.5781 MB / 282.7 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.0003145/0.008011, allocations: 0.7396 MB / 324.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.008113, allocations: 43.98 kB / 324.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.008115, allocations: 0 / 324.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.008148, allocations: 23.92 kB / 324.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.008368, allocations: 31.3 kB / 324.6 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.009635, allocations: 1.546 MB / 326.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.017e-05/0.009716, allocations: 92.27 kB / 326.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.912e-05/0.009765, allocations: 12.23 kB / 326.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.724e-05/0.009822, allocations: 28.5 kB / 326.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.009823, allocations: 4 kB / 326.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.02616, allocations: 3.04 MB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.643/6.669, allocations: 8.062 kB / 329.4 MB, free: 11.01 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.345444209873676]