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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2672, allocations: 50.55 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002715/0.27, allocations: 1.695 MB / 410.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009003/0.2709, allocations: 0.5493 MB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.271, allocations: 0 / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.2711, allocations: 11.86 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.2713, allocations: 27.72 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.2715, allocations: 63.86 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000156/0.2717, allocations: 95.7 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2718, allocations: 33.09 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.2719, allocations: 55.77 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.619e-05/0.272, allocations: 39.78 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.2721, allocations: 4 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.263e-05/0.2721, allocations: 8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.2e-05/0.2722, allocations: 23.91 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.733e-05/0.2722, allocations: 43.73 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.2724, allocations: 97.27 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2724, allocations: 4 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2724, allocations: 4 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.2724, allocations: 0 / 411.5 MB, free: 14.77 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.0005295/0.2729, allocations: 403 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.273, allocations: 8.031 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.273, allocations: 42.73 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.2732, allocations: 20.75 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.2734, allocations: 216.6 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.2734, allocations: 4.375 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.2735, allocations: 19.84 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.2736, allocations: 73.66 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2737, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2737, allocations: 4 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2737, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.2738, allocations: 43.91 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.2743, allocations: 408 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.2745, allocations: 58.53 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.2745, allocations: 32.89 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.2746, allocations: 0 / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.2746, allocations: 34.56 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 4.097e-06/0.2746, allocations: 3.984 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002759/0.2749, allocations: 109.4 kB / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.2749, allocations: 55.41 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.275, allocations: 138.4 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.2751, allocations: 25.7 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.2751, allocations: 112 kB / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.2752, allocations: 19.78 kB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.2752, allocations: 21.72 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2753, allocations: 326.8 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.444e-05/0.2754, allocations: 19.98 kB / 413.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.961e-05/0.2754, allocations: 15.98 kB / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.2756, allocations: 52.98 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2756, allocations: 0 / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001644/0.2758, allocations: 97.45 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2758, allocations: 8 kB / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.2758, allocations: 0 / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.2758, allocations: 4.234 kB / 413.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.276, allocations: 39.97 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.276, allocations: 4 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.877e-05/0.2761, allocations: 0 / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.2761, allocations: 4 kB / 413.9 MB, free: 12.14 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 7.651e-05/0.2762, allocations: 117.8 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.2762, allocations: 15.84 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.2763, allocations: 20.3 kB / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2763, allocations: 0 / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2763, allocations: 0 / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2763, allocations: 0 / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.2765, allocations: 201.5 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2765, allocations: 3.938 kB / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.2766, allocations: 27.86 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2766, allocations: 0 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.2767, allocations: 4 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.714e-06/0.2767, allocations: 7.984 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2767, allocations: 0 / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.2769, allocations: 195.4 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.277, allocations: 88.94 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.277, allocations: 4.031 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.778e-05/0.2771, allocations: 3.938 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.2772, allocations: 4 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2772, allocations: 12.05 kB / 414.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.61e-05/0.2772, allocations: 104.4 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2772, allocations: 4 kB / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002273/0.2775, allocations: 12 kB / 414.7 MB, free: 11.23 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.0005217/0.278, allocations: 0.7357 MB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.2782, allocations: 51.97 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2782, allocations: 0 / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.322e-05/0.2783, allocations: 28.05 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.2786, allocations: 22.77 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.2803, allocations: 1.582 MB / 417.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.2805, allocations: 0.7041 MB / 417.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.364e-05/0.2806, allocations: 4 kB / 417.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.2806, allocations: 27.42 kB / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2806, allocations: 0 / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3013, allocations: 2.338 MB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.684, allocations: 15.81 kB / 420.2 MB, free: 5.656 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time