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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 106.6 kB / 17.73 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.09102, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00296/0.09402, allocations: 1.661 MB / 376.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.09499, allocations: 0.5314 MB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.09512, allocations: 3.938 kB / 376.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.09528, allocations: 11.86 kB / 376.8 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.09548, allocations: 23.8 kB / 376.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.09569, allocations: 51.92 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.0959, allocations: 99.7 kB / 377 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.09606, allocations: 29.39 kB / 377 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.09618, allocations: 47.77 kB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.952e-05/0.09629, allocations: 39.78 kB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.09633, allocations: 8 kB / 377.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.764e-05/0.09635, allocations: 8 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.079e-05/0.09642, allocations: 23.91 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.236e-05/0.09648, allocations: 39.73 kB / 377.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.09663, allocations: 95.52 kB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.09664, allocations: 0 / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.09665, allocations: 4 kB / 377.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.09666, allocations: 0 / 377.3 MB, free: 2.398 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.0005329/0.0972, allocations: 403 kB / 377.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.09725, allocations: 8.031 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.0973, allocations: 42.75 kB / 377.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.09734, allocations: 8.844 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.0976, allocations: 208.6 kB / 378 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.09763, allocations: 4.375 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.09767, allocations: 11.94 kB / 378 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.09786, allocations: 73.67 kB / 378 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.09788, allocations: 0 / 378 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.0979, allocations: 7.984 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.09791, allocations: 3.938 kB / 378.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.09804, allocations: 47.86 kB / 378.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005487/0.09859, allocations: 404 kB / 378.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.09875, allocations: 62.53 kB / 378.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.607e-05/0.09883, allocations: 32.89 kB / 378.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.09886, allocations: 7.984 kB / 378.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.09888, allocations: 30.56 kB / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.213e-06/0.09889, allocations: 0 / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002676/0.09916, allocations: 97.45 kB / 378.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.0992, allocations: 55.41 kB / 378.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.09932, allocations: 145.8 kB / 378.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.09934, allocations: 33.64 kB / 379 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.81e-05/0.09941, allocations: 112.1 kB / 379.1 MB, free: 424 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.09944, allocations: 23.66 kB / 379.1 MB, free: 400 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.09948, allocations: 21.7 kB / 379.1 MB, free: 372 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.09958, allocations: 318.8 kB / 379.4 MB, free: 44 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.09964, allocations: 16 kB / 379.4 MB, free: 28 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.129e-05/0.0997, allocations: 27.97 kB / 379.5 MB, free: 0 / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.184/0.2837, allocations: 44.06 kB / 379.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.2838, allocations: 0 / 379.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002325/0.284, allocations: 89.73 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.2841, allocations: 5.844 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2841, allocations: 0 / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.2841, allocations: 1.125 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.2844, allocations: 40.36 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2844, allocations: 3.438 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.2845, allocations: 3.078 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.2845, allocations: 2.234 kB / 379.6 MB, free: 12.8 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 8.391e-05/0.2846, allocations: 124.2 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.2846, allocations: 10.94 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.734e-05/0.2847, allocations: 12.58 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2847, allocations: 0 / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2847, allocations: 4.938 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2847, allocations: 0.6094 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.2849, allocations: 201.3 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2849, allocations: 0 / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.2851, allocations: 21.78 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2851, allocations: 1 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2851, allocations: 1.766 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2851, allocations: 4.266 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2851, allocations: 1.125 kB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.2854, allocations: 205.9 kB / 380.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.911e-05/0.2855, allocations: 86.41 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.2855, allocations: 3.312 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.2856, allocations: 6.406 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.2856, allocations: 3.859 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.2856, allocations: 1.375 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.96e-05/0.2857, allocations: 116.8 kB / 380.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2857, allocations: 0 / 380.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.286, allocations: 15.89 kB / 380.5 MB, free: 12.19 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.0004412/0.2864, allocations: 0.7341 MB / 381.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.2866, allocations: 51.2 kB / 381.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2866, allocations: 3.344 kB / 381.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.361e-05/0.2867, allocations: 21 kB / 381.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.2871, allocations: 31.25 kB / 381.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.2888, allocations: 1.575 MB / 382.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.289, allocations: 0.7081 MB / 383.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.56e-05/0.289, allocations: 8.938 kB / 383.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.342e-05/0.2891, allocations: 32.03 kB / 383.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2891, allocations: 3.172 kB / 383.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.3134, allocations: 2.323 MB / 385.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.536/7.85, allocations: 10.84 kB / 385.9 MB, free: 9.086 MB / 318.1 MB (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 --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) 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) "" Variables in the reference:time,firstOrder1.y,firstOrder2.y Variables in the result:criticalDamping.f,criticalDamping.initType,criticalDamping.n,criticalDamping.normalized,criticalDamping.u,criticalDamping.x[1],criticalDamping.x_start[1],criticalDamping.y,criticalDamping.y_start,der(firstOrder1.y),der(firstOrder2.y),feedback.u1,feedback.u2,feedback.y,firstOrder1.T,firstOrder1.initType,firstOrder1.k,firstOrder1.u,firstOrder1.y,firstOrder1.y_start,firstOrder2.T,firstOrder2.initType,firstOrder2.k,firstOrder2.u,firstOrder2.y,firstOrder2.y_start,inverseBlockConstraints.u1,inverseBlockConstraints.u2,inverseBlockConstraints.y1,inverseBlockConstraints.y2,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time