Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 109.6 kB / 21.18 MB, free: 0.7188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 216.7 kB / 24.49 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 55.05 kB / 347.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.334, allocations: 49.17 MB / 396.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003249/0.3372, allocations: 1.688 MB / 398 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009348/0.3382, allocations: 0.5386 MB / 398.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.861e-05/0.3382, allocations: 6.219 kB / 398.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.3384, allocations: 14.17 kB / 398.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.3385, allocations: 22.72 kB / 398.6 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.3387, allocations: 49.25 kB / 398.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.3389, allocations: 101.3 kB / 398.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.339, allocations: 29.27 kB / 398.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.395e-05/0.3391, allocations: 45.62 kB / 398.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.999e-05/0.3392, allocations: 43.92 kB / 398.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.3392, allocations: 6.844 kB / 398.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.3393, allocations: 7.125 kB / 398.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.816e-05/0.3393, allocations: 23.11 kB / 398.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.662e-05/0.3394, allocations: 44.8 kB / 398.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.3395, allocations: 84.09 kB / 399 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3395, allocations: 0 / 399 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3395, allocations: 1.219 kB / 399 MB, free: 7.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3395, allocations: 0 / 399 MB, free: 7.207 MB / 318.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.0004762/0.34, allocations: 335 kB / 399.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.34, allocations: 14.11 kB / 399.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.998e-05/0.3401, allocations: 46.22 kB / 399.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.3401, allocations: 14.78 kB / 399.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.3403, allocations: 141.4 kB / 399.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.3403, allocations: 7.656 kB / 399.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.3403, allocations: 9.438 kB / 399.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.3405, allocations: 80.77 kB / 399.7 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.3405, allocations: 0 / 399.7 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.3405, allocations: 5.469 kB / 399.7 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3405, allocations: 5.188 kB / 399.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.3406, allocations: 41 kB / 399.7 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.3412, allocations: 377.1 kB / 400.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.3413, allocations: 64.73 kB / 400.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.261e-05/0.3414, allocations: 33.69 kB / 400.2 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.3414, allocations: 4 kB / 400.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.3414, allocations: 33.06 kB / 400.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.3414, allocations: 0 / 400.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003055/0.3417, allocations: 101.6 kB / 400.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.3418, allocations: 51.41 kB / 400.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3419, allocations: 147.8 kB / 400.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.3419, allocations: 25.7 kB / 400.5 MB, free: 5.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.342, allocations: 113.7 kB / 400.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.342, allocations: 27.81 kB / 400.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.342, allocations: 20.62 kB / 400.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.911e-05/0.3421, allocations: 319.8 kB / 401 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.379e-05/0.3422, allocations: 18.17 kB / 401 MB, free: 5.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.389e-05/0.3422, allocations: 21.11 kB / 401 MB, free: 5.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.3423, allocations: 48.58 kB / 401.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3423, allocations: 1.031 kB / 401.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001682/0.3425, allocations: 97.72 kB / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3425, allocations: 5.375 kB / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.3425, allocations: 0 / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3425, allocations: 2.078 kB / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.3428, allocations: 36.64 kB / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3428, allocations: 0 / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.29e-05/0.3429, allocations: 4.062 kB / 401.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.3429, allocations: 9.031 kB / 401.2 MB, free: 5.332 MB / 318.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 7.844e-05/0.3429, allocations: 116.6 kB / 401.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.343, allocations: 15.75 kB / 401.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.343, allocations: 12.62 kB / 401.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.343, allocations: 1.438 kB / 401.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.343, allocations: 0 / 401.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.343, allocations: 3.938 kB / 401.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.3432, allocations: 165 kB / 401.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3432, allocations: 5.469 kB / 401.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.3433, allocations: 25.33 kB / 401.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3433, allocations: 0.7031 kB / 401.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3433, allocations: 1.406 kB / 401.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3433, allocations: 0.7969 kB / 401.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3433, allocations: 0 / 401.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.3436, allocations: 203.4 kB / 401.8 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/0.3436, allocations: 11.97 kB / 401.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.3437, allocations: 9.375 kB / 401.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.393e-05/0.3437, allocations: 2.438 kB / 401.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.413e-05/0.3438, allocations: 8.391 kB / 401.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3438, allocations: 1.438 kB / 401.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.718e-05/0.3438, allocations: 116.5 kB / 401.9 MB, free: 4.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3438, allocations: 0 / 401.9 MB, free: 4.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.3441, allocations: 28.2 kB / 402 MB, free: 4.727 MB / 318.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.0004072/0.3445, allocations: 0.7283 MB / 402.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001699/0.3447, allocations: 49.22 kB / 402.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3447, allocations: 0 / 402.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.396e-05/0.3447, allocations: 21.53 kB / 402.8 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.3451, allocations: 18.86 kB / 402.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.3466, allocations: 1.581 MB / 404.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.3467, allocations: 0.7014 MB / 405.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.425e-05/0.3468, allocations: 17.12 kB / 405.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.3468, allocations: 30.38 kB / 405.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3468, allocations: 0 / 405.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.3776, allocations: 2.456 MB / 407.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.43, allocations: 9 kB / 407.6 MB, free: 1.273 MB / 318.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.15634486102499]