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.005331/0.005331, allocations: 100.7 kB / 21.96 MB, free: 5.211 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.001341/0.001341, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.294/1.294, allocations: 207.7 MB / 236.1 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="cs",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.001649/0.001649, allocations: 58.58 kB / 348 MB, free: 9.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2313, allocations: 49.15 MB / 397.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002624/0.2339, allocations: 1.646 MB / 398.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008028/0.2347, allocations: 0.5089 MB / 399.3 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.788e-05/0.2348, allocations: 1.531 kB / 399.3 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.152e-05/0.2349, allocations: 13.73 kB / 399.3 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2351, allocations: 19.75 kB / 399.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.2352, allocations: 47.78 kB / 399.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.2354, allocations: 101.8 kB / 399.4 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2355, allocations: 29.34 kB / 399.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.724e-05/0.2356, allocations: 46.19 kB / 399.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.32e-05/0.2356, allocations: 43.94 kB / 399.6 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.2357, allocations: 7 kB / 399.6 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.705e-05/0.2357, allocations: 6.781 kB / 399.6 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.393e-05/0.2357, allocations: 20.2 kB / 399.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.2358, allocations: 31.97 kB / 399.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2359, allocations: 91.28 kB / 399.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2359, allocations: 0 / 399.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2359, allocations: 1.125 kB / 399.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2359, allocations: 0 / 399.7 MB, free: 7.203 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.0004405/0.2364, allocations: 339.3 kB / 400 MB, free: 6.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2364, allocations: 12.67 kB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.604e-05/0.2364, allocations: 6.703 kB / 400.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.298e-05/0.2364, allocations: 39.09 kB / 400.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.2365, allocations: 14.09 kB / 400.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.2367, allocations: 149.1 kB / 400.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.2367, allocations: 10.44 kB / 400.3 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.2367, allocations: 13.09 kB / 400.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.2369, allocations: 80.44 kB / 400.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2369, allocations: 0 / 400.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2369, allocations: 4 kB / 400.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2369, allocations: 1.656 kB / 400.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.237, allocations: 42.25 kB / 400.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004213/0.2374, allocations: 305.8 kB / 400.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.2376, allocations: 61.39 kB / 400.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.232e-05/0.2376, allocations: 36.48 kB / 400.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.2376, allocations: 2.031 kB / 400.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.277e-05/0.2376, allocations: 32.42 kB / 400.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.2376, allocations: 0 / 400.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002599/0.2379, allocations: 105.3 kB / 400.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.2379, allocations: 53.14 kB / 401 MB, free: 6.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.238, allocations: 142.4 kB / 401.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.238, allocations: 25.7 kB / 401.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.2381, allocations: 110.6 kB / 401.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.2381, allocations: 27.97 kB / 401.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.2381, allocations: 19.88 kB / 401.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.802e-05/0.2382, allocations: 320.4 kB / 401.6 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.778e-05/0.2383, allocations: 26.03 kB / 401.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-05/0.2383, allocations: 18.42 kB / 401.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.2384, allocations: 52.39 kB / 401.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2384, allocations: 0 / 401.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001447/0.2385, allocations: 90.86 kB / 401.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2386, allocations: 9.188 kB / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2386, allocations: 0 / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2386, allocations: 1.094 kB / 401.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.2388, allocations: 40.83 kB / 401.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.2388, allocations: 1.344 kB / 401.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.985e-05/0.2388, allocations: 3.438 kB / 401.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.2388, allocations: 2.031 kB / 401.9 MB, free: 5.398 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 5.737e-05/0.2389, allocations: 115.6 kB / 402 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.2389, allocations: 16.61 kB / 402 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.783e-05/0.239, allocations: 15.91 kB / 402 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.239, allocations: 4.891 kB / 402 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.239, allocations: 1.156 kB / 402 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.239, allocations: 0 / 402 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.2391, allocations: 163.4 kB / 402.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.2391, allocations: 0 / 402.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.2393, allocations: 22.5 kB / 402.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2393, allocations: 5.062 kB / 402.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2393, allocations: 0.9844 kB / 402.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2393, allocations: 1.562 kB / 402.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2393, allocations: 0 / 402.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.2395, allocations: 207.2 kB / 402.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.2395, allocations: 7.141 kB / 402.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.2395, allocations: 1.781 kB / 402.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.133e-05/0.2396, allocations: 10.69 kB / 402.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.2396, allocations: 4.094 kB / 402.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.2397, allocations: 2.359 kB / 402.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.382e-05/0.2397, allocations: 111.9 kB / 402.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2397, allocations: 0 / 402.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.2399, allocations: 19.83 kB / 402.6 MB, free: 4.805 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.0003366/0.2403, allocations: 0.7385 MB / 403.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.2404, allocations: 40.83 kB / 403.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.2404, allocations: 3.938 kB / 403.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.681e-05/0.2405, allocations: 30.5 kB / 403.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2408, allocations: 17.89 kB / 403.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.2421, allocations: 1.588 MB / 405 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.112e-05/0.2422, allocations: 90.19 kB / 405.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.379e-05/0.2422, allocations: 9.016 kB / 405.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.2423, allocations: 30.2 kB / 405.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2423, allocations: 4 kB / 405.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.2657, allocations: 2.561 MB / 407.7 MB, free: 1.875 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.6, allocations: 7 kB / 407.7 MB, free: 1.871 MB / 318.1 MB " [Timeout remaining time 649] (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: 12.873979612952098]