Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001714/0.001714, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 207.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 59.91 kB / 377.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.38, allocations: 53.4 MB / 431.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003948/0.3839, allocations: 1.676 MB / 432.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3852, allocations: 0.522 MB / 433.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3854, allocations: 0 / 433.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.3855, allocations: 15.8 kB / 433.3 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.3857, allocations: 19.8 kB / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.386, allocations: 59.92 kB / 433.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.3862, allocations: 107.6 kB / 433.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.3864, allocations: 25.09 kB / 433.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.3865, allocations: 43.83 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.3866, allocations: 47.72 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.3867, allocations: 8 kB / 433.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.653e-05/0.3867, allocations: 8 kB / 433.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.433e-05/0.3868, allocations: 19.92 kB / 433.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.8e-05/0.3869, allocations: 43.72 kB / 433.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.3871, allocations: 81.47 kB / 433.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3871, allocations: 4 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3871, allocations: 0 / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3871, allocations: 0 / 433.8 MB, free: 3.809 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.0006785/0.3878, allocations: 341.8 kB / 434.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.3878, allocations: 15.98 kB / 434.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.3879, allocations: 38.73 kB / 434.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.3881, allocations: 20.84 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.3884, allocations: 146.5 kB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.3884, allocations: 16.3 kB / 434.4 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.3884, allocations: 7.938 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.3886, allocations: 81.55 kB / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3887, allocations: 4 kB / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.3887, allocations: 4 kB / 434.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3887, allocations: 4 kB / 434.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.3888, allocations: 35.97 kB / 434.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.3894, allocations: 315.7 kB / 434.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.3896, allocations: 58.58 kB / 434.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.612e-05/0.3896, allocations: 36.88 kB / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.3897, allocations: 8 kB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.3897, allocations: 34.5 kB / 434.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.3897, allocations: 0 / 434.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003291/0.39, allocations: 105.5 kB / 435 MB, free: 2.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.3901, allocations: 51.41 kB / 435.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.3902, allocations: 142.4 kB / 435.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3902, allocations: 25.7 kB / 435.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/0.3903, allocations: 112.1 kB / 435.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.3904, allocations: 19.94 kB / 435.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.3904, allocations: 25.7 kB / 435.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.3906, allocations: 322.8 kB / 435.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.035e-05/0.3906, allocations: 20 kB / 435.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.186e-05/0.3907, allocations: 19.98 kB / 435.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.3908, allocations: 52.78 kB / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3908, allocations: 0 / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001831/0.391, allocations: 93.55 kB / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.391, allocations: 4 kB / 435.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.391, allocations: 0 / 435.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.391, allocations: 8 kB / 435.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.3912, allocations: 35.97 kB / 436 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.3912, allocations: 0 / 436 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.351e-05/0.3913, allocations: 7.953 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3913, allocations: 0 / 436 MB, free: 1.441 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.0001132/0.3914, allocations: 121.8 kB / 436.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.3915, allocations: 11.89 kB / 436.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.3915, allocations: 16.41 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3915, allocations: 3.938 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3915, allocations: 4 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3915, allocations: 0 / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.3917, allocations: 156.7 kB / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3917, allocations: 7.938 kB / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.3919, allocations: 23.98 kB / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.3919, allocations: 0 / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3919, allocations: 0 / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3919, allocations: 0 / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3919, allocations: 3.984 kB / 436.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003016/0.3922, allocations: 203.7 kB / 436.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.315e-05/0.3922, allocations: 27.8 kB / 436.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3922, allocations: 0 / 436.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.839e-05/0.3923, allocations: 4 kB / 436.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.3923, allocations: 0 / 436.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.3924, allocations: 7.984 kB / 436.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.71e-05/0.3924, allocations: 110.6 kB / 436.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3924, allocations: 0 / 436.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.3927, allocations: 12 kB / 436.7 MB, free: 0.6758 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.000609/0.3933, allocations: 0.7359 MB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001762/0.3934, allocations: 47.86 kB / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3935, allocations: 0 / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.293e-05/0.3935, allocations: 23.98 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.3939, allocations: 22.73 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.396, allocations: 1.59 MB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.3961, allocations: 93.7 kB / 439.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.79e-05/0.3962, allocations: 4 kB / 439.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.23e-05/0.3962, allocations: 31.42 kB / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3962, allocations: 0 / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.4302, allocations: 2.912 MB / 442.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.14, allocations: 7.375 kB / 442.1 MB, free: 11.19 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.110660179052502]