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.001208/0.001208, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008908/0.0008908, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8842/0.8842, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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 3.697e-06/3.697e-06, allocations: 4 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.529e-05/2.899e-05, allocations: 3.125 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002535/0.002564, allocations: 1.678 MB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008826/0.003447, allocations: 0.5181 MB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.62e-05/0.003543, allocations: 8 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.003646, allocations: 7.875 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.003842, allocations: 27.72 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.004093, allocations: 63.78 kB / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.004255, allocations: 107.6 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.004369, allocations: 25.28 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.004526, allocations: 59.88 kB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.004595, allocations: 31.91 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.004614, allocations: 8 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.004661, allocations: 19.92 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.004724, allocations: 23.91 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.372e-05/0.004757, allocations: 15.94 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.004933, allocations: 95.61 kB / 327.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.004937, allocations: 0 / 327.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.004939, allocations: 0 / 327.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.004945, allocations: 0 / 327.2 MB, free: 13.22 MB / 298.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.0004966/0.005441, allocations: 341.8 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.00549, allocations: 15.98 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.005535, allocations: 42.73 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.00565, allocations: 16.84 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.005946, allocations: 146.1 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.005962, allocations: 8.375 kB / 327.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.005991, allocations: 4.375 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001635/0.006154, allocations: 88.72 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.006164, allocations: 0 / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.006179, allocations: 12 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.006185, allocations: 0 / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.656e-05/0.006261, allocations: 39.97 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.006725, allocations: 315.7 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.006853, allocations: 62.56 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.433e-05/0.006898, allocations: 28.84 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.006916, allocations: 3.984 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.006943, allocations: 38.56 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.006945, allocations: 0 / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002259/0.00717, allocations: 89.81 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.007203, allocations: 55.34 kB / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.007306, allocations: 153.4 kB / 328.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.007319, allocations: 33.64 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.618e-05/0.007375, allocations: 108.1 kB / 328.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.0074, allocations: 19.94 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.007434, allocations: 21.7 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.731e-05/0.007521, allocations: 318.8 kB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.556e-05/0.007557, allocations: 24.05 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.076e-05/0.007587, allocations: 23.98 kB / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.332e-05/0.007661, allocations: 52.98 kB / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.007662, allocations: 0 / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001047/0.007767, allocations: 89.61 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.00778, allocations: 8 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.007785, allocations: 7.875 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.007797, allocations: 0 / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.007927, allocations: 43.91 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.007931, allocations: 0 / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.542e-05/0.007957, allocations: 7.953 kB / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.007965, allocations: 0 / 329.4 MB, free: 10.85 MB / 298.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 7.638e-05/0.008042, allocations: 117.8 kB / 329.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.008059, allocations: 7.953 kB / 329.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.008085, allocations: 20.39 kB / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.008088, allocations: 4 kB / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.008092, allocations: 0 / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.008096, allocations: 0 / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.008241, allocations: 160.7 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.008243, allocations: 0 / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.676e-05/0.00832, allocations: 19.98 kB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.008322, allocations: 0 / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.008333, allocations: 7.938 kB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.008336, allocations: 4 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.008337, allocations: 0 / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.008544, allocations: 199.4 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.907e-05/0.008563, allocations: 15.88 kB / 329.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.008579, allocations: 8 kB / 329.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.973e-05/0.008619, allocations: 7.984 kB / 329.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.008654, allocations: 4 kB / 329.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.008658, allocations: 64 / 329.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.779e-05/0.008715, allocations: 111.2 kB / 330 MB, free: 10.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.008715, allocations: 0 / 330 MB, free: 10.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001537/0.008869, allocations: 16 kB / 330 MB, free: 10.09 MB / 298.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.0004058/0.009275, allocations: 0.7319 MB / 330.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.009404, allocations: 51.97 kB / 330.8 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.009405, allocations: 0 / 330.8 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.783e-05/0.009443, allocations: 27.92 kB / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.009698, allocations: 19.98 kB / 330.9 MB, free: 9.238 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.01087, allocations: 1.563 MB / 332.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.875e-05/0.01093, allocations: 93.31 kB / 332.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.128e-05/0.01097, allocations: 4 kB / 332.5 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.081e-05/0.01102, allocations: 32.48 kB / 332.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01102, allocations: 0 / 332.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.03045, allocations: 3.066 MB / 335.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.847/6.877, allocations: 9.266 kB / 335.6 MB, free: 4.465 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/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: 8.569795763120055]