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.001104/0.001104, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.0012, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2314, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002587/0.2341, allocations: 1.702 MB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000902/0.235, allocations: 0.5454 MB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.277e-05/0.2351, allocations: 8 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.733e-05/0.2352, allocations: 11.86 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.2354, allocations: 23.8 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.2356, allocations: 63.8 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.2358, allocations: 95.7 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.2359, allocations: 33.09 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.236, allocations: 51.78 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.772e-05/0.2361, allocations: 43.77 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.2362, allocations: 4 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.752e-05/0.2362, allocations: 12 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.19e-05/0.2363, allocations: 19.92 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.2363, allocations: 43.73 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.2365, allocations: 94.61 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2365, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2365, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2365, allocations: 4 kB / 411.5 MB, free: 14.79 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.0005357/0.2371, allocations: 407 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2371, allocations: 8.031 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.2371, allocations: 42.73 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.2373, allocations: 20.84 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.2375, allocations: 220.2 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.2376, allocations: 4.375 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.2376, allocations: 19.88 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.2378, allocations: 81.59 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.2378, allocations: 0 / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.2378, allocations: 0 / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.2378, allocations: 0 / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.2379, allocations: 47.91 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005109/0.2385, allocations: 408 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.2386, allocations: 58.5 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.843e-05/0.2387, allocations: 32.92 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.2387, allocations: 0 / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.2387, allocations: 34.56 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.2387, allocations: 4 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002705/0.239, allocations: 105.5 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.2391, allocations: 55.34 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.2392, allocations: 138.4 kB / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.2392, allocations: 29.7 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.2393, allocations: 108.1 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.2393, allocations: 23.92 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.2393, allocations: 21.72 kB / 413.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.615e-05/0.2394, allocations: 322.8 kB / 413.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.292e-05/0.2395, allocations: 19.98 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.772e-05/0.2396, allocations: 15.98 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.2397, allocations: 52.83 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2397, allocations: 0 / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001621/0.2399, allocations: 97.66 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2399, allocations: 4 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.2399, allocations: 4 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.2399, allocations: 0 / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.2401, allocations: 44.2 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.2401, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.405e-05/0.2402, allocations: 7.953 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.2402, 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 8.167e-05/0.2403, allocations: 117.8 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.269e-05/0.2403, allocations: 11.89 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.2404, allocations: 20.3 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2404, allocations: 0 / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2404, allocations: 0 / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2404, allocations: 0 / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.2406, allocations: 193.6 kB / 414.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2406, allocations: 3.938 kB / 414.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.2408, allocations: 23.92 kB / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2408, allocations: 0 / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2408, allocations: 7.938 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2408, allocations: 0 / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2408, allocations: 7.984 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.2411, allocations: 195.5 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.2412, allocations: 96.88 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.2412, allocations: 4.031 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.2413, allocations: 4 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.2413, allocations: 7.938 kB / 414.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/0.2413, allocations: 4.047 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.956e-05/0.2414, allocations: 114.6 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2414, allocations: 0 / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.2416, allocations: 16 kB / 414.7 MB, free: 11.24 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.0004789/0.2421, allocations: 0.728 MB / 415.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.2423, allocations: 51.97 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2423, allocations: 0 / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.24e-05/0.2424, allocations: 27.92 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.2427, allocations: 25.59 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.2443, allocations: 1.582 MB / 417.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.2446, allocations: 0.7041 MB / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.366e-05/0.2446, allocations: 7.984 kB / 417.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.917e-05/0.2447, allocations: 31.42 kB / 417.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2447, allocations: 0 / 417.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.264, allocations: 2.311 MB / 420.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.686, allocations: 10.58 kB / 420.2 MB, free: 5.699 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.csv","/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) Reference file matches