Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001861/0.001861, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002264/0.002264, allocations: 203.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 377.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3276, allocations: 53.35 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003963/0.3316, allocations: 1.68 MB / 432.7 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.333, allocations: 0.5105 MB / 433.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.3331, allocations: 7.938 kB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.3333, allocations: 11.86 kB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.3335, allocations: 19.8 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.3338, allocations: 67.84 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.3341, allocations: 95.7 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.3342, allocations: 29.28 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.3343, allocations: 51.78 kB / 433.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.3345, allocations: 39.78 kB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.3345, allocations: 11.98 kB / 433.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.577e-05/0.3345, allocations: 12 kB / 433.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.022e-05/0.3346, allocations: 23.86 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.981e-05/0.3347, allocations: 31.8 kB / 433.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.3349, allocations: 91.94 kB / 433.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3349, allocations: 0 / 433.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3349, allocations: 0 / 433.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3349, allocations: 4 kB / 433.7 MB, free: 3.945 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.0006541/0.3356, allocations: 333.9 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3356, allocations: 11.97 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.456e-05/0.3356, allocations: 38.75 kB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.3358, allocations: 24.83 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.3361, allocations: 150.8 kB / 434.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3362, allocations: 4.375 kB / 434.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.3362, allocations: 19.94 kB / 434.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.3364, allocations: 81.59 kB / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3364, allocations: 0 / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.3364, allocations: 3.938 kB / 434.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3364, allocations: 3.984 kB / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.3366, allocations: 43.97 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.3373, allocations: 307.7 kB / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.3376, allocations: 66.53 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.3377, allocations: 28.89 kB / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.3377, allocations: 0 / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.3377, allocations: 38.55 kB / 434.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.3377, allocations: 0 / 434.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003687/0.3381, allocations: 93.56 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3381, allocations: 59.34 kB / 435 MB, free: 2.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.3383, allocations: 149.6 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.3383, allocations: 25.7 kB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.3384, allocations: 108.1 kB / 435.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.3385, allocations: 23.94 kB / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.3385, allocations: 17.72 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3387, allocations: 322.8 kB / 435.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.105e-05/0.3388, allocations: 27.98 kB / 435.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.567e-05/0.3388, allocations: 23.95 kB / 435.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.339, allocations: 48.84 kB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.339, allocations: 0 / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002415/0.3392, allocations: 89.52 kB / 435.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3393, allocations: 11.98 kB / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3393, allocations: 0 / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3393, allocations: 0 / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.3395, allocations: 43.97 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3395, allocations: 0 / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.982e-05/0.3396, allocations: 7.891 kB / 435.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.3396, allocations: 4.25 kB / 435.9 MB, free: 1.578 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 0.0001038/0.3397, allocations: 117.8 kB / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.3397, allocations: 11.89 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.3397, allocations: 20.39 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3397, allocations: 0 / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.3398, allocations: 4 kB / 436.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3398, allocations: 0 / 436.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.34, allocations: 160.7 kB / 436.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.34, allocations: 3.938 kB / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.3401, allocations: 19.98 kB / 436.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3401, allocations: 0 / 436.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3402, allocations: 4 kB / 436.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3402, allocations: 3.938 kB / 436.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3402, allocations: 0 / 436.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.3405, allocations: 207.4 kB / 436.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.3405, allocations: 15.86 kB / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.3405, allocations: 0 / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3406, allocations: 11.98 kB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.3406, allocations: 0 / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.3406, allocations: 0 / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.158e-05/0.3407, allocations: 111.2 kB / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3407, allocations: 0 / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.341, allocations: 19.95 kB / 436.6 MB, free: 0.8125 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.000595/0.3416, allocations: 0.7319 MB / 437.3 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.3417, allocations: 47.97 kB / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3417, allocations: 0 / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.678e-05/0.3418, allocations: 28 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.3422, allocations: 24.7 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.3441, allocations: 1.587 MB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.628e-05/0.3442, allocations: 97.03 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.375e-05/0.3442, allocations: 8.047 kB / 439.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.3443, allocations: 31.36 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3443, allocations: 4 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.3771, allocations: 2.938 MB / 442.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.35, allocations: 10.72 kB / 442.1 MB, free: 11.33 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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.00019992 Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 13.965377768006874]