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.001448/0.001448, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.001965/0.001965, allocations: 192.8 kB / 24.5 MB, free: 4.008 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.314/1.314, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 39.94 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2277, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002798/0.2305, allocations: 1.707 MB / 425.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008207/0.2313, allocations: 490.8 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.2314, allocations: 7.938 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.264e-05/0.2315, allocations: 11.88 kB / 425.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.2316, allocations: 31.78 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001721/0.2318, allocations: 47.92 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.232, allocations: 95.7 kB / 425.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.887e-05/0.2321, allocations: 25.3 kB / 425.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.536e-05/0.2322, allocations: 51.77 kB / 425.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.483e-05/0.2323, allocations: 39.78 kB / 425.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.2323, allocations: 11.94 kB / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.538e-05/0.2323, allocations: 8 kB / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.117e-05/0.2323, allocations: 19.92 kB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.932e-05/0.2324, allocations: 39.73 kB / 426 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.2325, allocations: 88.36 kB / 426.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2325, allocations: 4 kB / 426.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2325, allocations: 0 / 426.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.2325, allocations: 0 / 426.1 MB, free: 11.95 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.0005196/0.2331, allocations: 341.8 kB / 426.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.2331, allocations: 8.031 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.453e-05/0.2331, allocations: 4.188 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.2331, allocations: 34.75 kB / 426.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.2332, allocations: 12.89 kB / 426.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.2334, allocations: 150.2 kB / 426.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.2334, allocations: 11.94 kB / 426.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.2334, allocations: 4 kB / 426.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.2336, allocations: 85.17 kB / 426.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.2336, allocations: 0 / 426.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.2336, allocations: 4 kB / 426.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2336, allocations: 0 / 426.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.2338, allocations: 51.84 kB / 426.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.2343, allocations: 359.2 kB / 427.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.2345, allocations: 78.45 kB / 427.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.073e-05/0.2345, allocations: 32.83 kB / 427.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.2346, allocations: 0 / 427.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.2346, allocations: 30.56 kB / 427.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.2346, allocations: 0 / 427.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002974/0.2349, allocations: 97.56 kB / 427.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.2349, allocations: 55.41 kB / 427.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2351, allocations: 152.9 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.2351, allocations: 25.7 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.2352, allocations: 108.2 kB / 427.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.2352, allocations: 27.78 kB / 427.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.2352, allocations: 21.7 kB / 427.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2354, allocations: 322.8 kB / 428 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.971e-05/0.2355, allocations: 19.98 kB / 428.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.719e-05/0.2355, allocations: 23.98 kB / 428.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.2356, allocations: 48.98 kB / 428.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2356, allocations: 0 / 428.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001701/0.2358, allocations: 89.56 kB / 428.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.2358, allocations: 8 kB / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2358, allocations: 0 / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2359, allocations: 0 / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.2361, allocations: 39.97 kB / 428.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2361, allocations: 0 / 428.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.09e-05/0.2361, allocations: 8.203 kB / 428.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2361, allocations: 0 / 428.3 MB, free: 9.535 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.000107/0.2363, allocations: 121.8 kB / 428.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.2363, allocations: 19.94 kB / 428.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.2363, allocations: 8.406 kB / 428.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2363, allocations: 3.938 kB / 428.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2363, allocations: 0 / 428.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2363, allocations: 8 kB / 428.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.2365, allocations: 168.6 kB / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2365, allocations: 0 / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.2367, allocations: 27.91 kB / 428.6 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.2367, allocations: 3.984 kB / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.2367, allocations: 0 / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2367, allocations: 0 / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2367, allocations: 0 / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.237, allocations: 211.4 kB / 428.8 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.237, allocations: 11.94 kB / 428.8 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.237, allocations: 0 / 428.8 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.2371, allocations: 8 kB / 428.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.2372, allocations: 7.922 kB / 428.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.2372, allocations: 4 kB / 428.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.284e-05/0.2373, allocations: 106.6 kB / 429 MB, free: 8.773 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2373, allocations: 0 / 429 MB, free: 8.773 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.2375, allocations: 23.94 kB / 429 MB, free: 8.75 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.0006153/0.2381, allocations: 0.7319 MB / 429.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.2383, allocations: 43.92 kB / 429.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2383, allocations: 0 / 429.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.212e-05/0.2383, allocations: 28.05 kB / 429.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.2387, allocations: 25.23 kB / 429.8 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.2405, allocations: 1.578 MB / 431.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.2408, allocations: 0.708 MB / 432.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.094e-05/0.2409, allocations: 4 kB / 432.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.78e-05/0.2409, allocations: 31.42 kB / 432.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2409, allocations: 0 / 432.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.2636, allocations: 2.489 MB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.7, allocations: 4.172 kB / 434.6 MB, free: 3.117 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.049698966962751]