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.001259/0.001259, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001383/0.001383, allocations: 190.2 kB / 23.71 MB, free: 4.406 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.367/1.367, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.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.001567/0.001567, allocations: 51.91 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2462, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002793/0.249, allocations: 1.664 MB / 424.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008478/0.2498, allocations: 462.9 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.2499, allocations: 0 / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.398e-05/0.25, allocations: 11.86 kB / 424.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.2502, allocations: 27.78 kB / 424.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.2503, allocations: 51.88 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.2505, allocations: 99.69 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.2506, allocations: 25.09 kB / 424.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.507e-05/0.2507, allocations: 39.84 kB / 424.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.288e-05/0.2508, allocations: 51.7 kB / 425 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2508, allocations: 4 kB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.2508, allocations: 8 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.07e-05/0.2509, allocations: 19.92 kB / 425 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.711e-05/0.2509, allocations: 35.8 kB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.2511, allocations: 85.41 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2511, allocations: 0 / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2511, allocations: 0 / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.2511, allocations: 0 / 425.1 MB, free: 11.8 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.000534/0.2516, allocations: 345.8 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2516, allocations: 8.031 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.2517, allocations: 42.73 kB / 425.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.2517, allocations: 8.891 kB / 425.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.252, allocations: 152.2 kB / 425.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.252, allocations: 0 / 425.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.252, allocations: 12 kB / 425.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.2522, allocations: 81.59 kB / 425.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2522, allocations: 0 / 425.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.2522, allocations: 4 kB / 425.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.2522, allocations: 3.938 kB / 425.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.2523, allocations: 39.98 kB / 425.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/0.2529, allocations: 307.7 kB / 426.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.2531, allocations: 66.56 kB / 426.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.721e-05/0.2531, allocations: 24.89 kB / 426.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.2532, allocations: 3.938 kB / 426.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.2532, allocations: 42.55 kB / 426.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.2532, allocations: 4 kB / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002939/0.2535, allocations: 93.56 kB / 426.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.2535, allocations: 51.41 kB / 426.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.2537, allocations: 147.8 kB / 426.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.2537, allocations: 29.7 kB / 426.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.632e-05/0.2538, allocations: 116.1 kB / 426.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.2538, allocations: 11.84 kB / 426.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.2538, allocations: 29.7 kB / 426.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.254, allocations: 314.8 kB / 427 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.974e-05/0.2541, allocations: 23.98 kB / 427 MB, free: 9.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.251e-05/0.2541, allocations: 23.92 kB / 427.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.2542, allocations: 56.72 kB / 427.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2542, allocations: 0 / 427.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000177/0.2544, allocations: 85.62 kB / 427.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.2544, allocations: 8 kB / 427.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2544, allocations: 0 / 427.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2545, allocations: 256 / 427.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.2547, allocations: 39.97 kB / 427.3 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.2547, allocations: 4 kB / 427.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.278e-05/0.2547, allocations: 7.953 kB / 427.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.2547, allocations: 0 / 427.3 MB, free: 9.461 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.0001104/0.2549, allocations: 121.7 kB / 427.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/0.2549, allocations: 11.94 kB / 427.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.2549, allocations: 16.41 kB / 427.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.2549, allocations: 0 / 427.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2549, allocations: 0 / 427.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2549, allocations: 0 / 427.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.2551, allocations: 172.6 kB / 427.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2551, allocations: 0 / 427.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.2553, allocations: 19.98 kB / 427.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2553, allocations: 0 / 427.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2553, allocations: 4 kB / 427.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2553, allocations: 0 / 427.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2553, allocations: 0 / 427.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.2556, allocations: 203.3 kB / 427.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.2556, allocations: 15.88 kB / 427.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.2557, allocations: 8.047 kB / 427.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.046e-05/0.2557, allocations: 8 kB / 427.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.2558, allocations: 0 / 427.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.2558, allocations: 4 kB / 427.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.115e-05/0.2559, allocations: 107.2 kB / 427.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2559, allocations: 0 / 427.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.2561, allocations: 19.94 kB / 428 MB, free: 8.695 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.0006233/0.2567, allocations: 0.728 MB / 428.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.2569, allocations: 51.97 kB / 428.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2569, allocations: 0 / 428.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.259e-05/0.257, allocations: 28.05 kB / 428.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.2573, allocations: 22.92 kB / 428.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.2592, allocations: 1.574 MB / 430.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.949e-05/0.2593, allocations: 92.19 kB / 430.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.565e-05/0.2594, allocations: 7.984 kB / 430.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.533e-05/0.2594, allocations: 27.42 kB / 430.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2595, allocations: 0 / 430.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.2918, allocations: 2.909 MB / 433.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.76, allocations: 4 kB / 433.4 MB, free: 3.266 MB / 334.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/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: 13.050954785663635]