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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001262, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 207.5 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 230.4 MB / 254 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 55.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.1001, allocations: 53.39 MB / 426.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002771/0.1029, allocations: 1.702 MB / 428.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009736/0.1039, allocations: 0.5533 MB / 428.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.788e-05/0.104, allocations: 7.938 kB / 428.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.336e-05/0.104, allocations: 11.81 kB / 428.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.1042, allocations: 23.8 kB / 428.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.1044, allocations: 59.86 kB / 428.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001681/0.1046, allocations: 103.7 kB / 428.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1047, allocations: 29.09 kB / 428.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1048, allocations: 47.73 kB / 428.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.1e-05/0.1049, allocations: 47.75 kB / 428.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.1049, allocations: 8 kB / 428.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.791e-05/0.105, allocations: 8 kB / 428.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.105, allocations: 19.92 kB / 429 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.815e-05/0.1051, allocations: 43.73 kB / 429 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.1052, allocations: 87.52 kB / 429.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1052, allocations: 7.938 kB / 429.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1053, allocations: 4 kB / 429.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1053, allocations: 0 / 429.1 MB, free: 1.852 MB / 350.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.000572/0.1058, allocations: 411 kB / 429.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1059, allocations: 8.031 kB / 429.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.1059, allocations: 38.75 kB / 429.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.106, allocations: 24.83 kB / 429.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.1063, allocations: 223.4 kB / 429.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1063, allocations: 4.375 kB / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.1063, allocations: 11.94 kB / 429.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.1065, allocations: 79.77 kB / 429.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.1065, allocations: 0 / 429.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1065, allocations: 0 / 429.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1065, allocations: 0 / 429.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.1066, allocations: 39.98 kB / 429.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005486/0.1072, allocations: 415.9 kB / 430.3 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.1073, allocations: 58.59 kB / 430.4 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.866e-05/0.1074, allocations: 32.83 kB / 430.4 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.1074, allocations: 4 kB / 430.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1074, allocations: 34.56 kB / 430.5 MB, free: 324 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.1074, allocations: 0 / 430.5 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002797/0.1077, allocations: 97.56 kB / 430.6 MB, free: 220 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.1078, allocations: 59.39 kB / 430.6 MB, free: 148 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.1079, allocations: 142.4 kB / 430.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1079, allocations: 25.7 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.108, allocations: 104.1 kB / 430.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.108, allocations: 27.92 kB / 430.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.1081, allocations: 21.72 kB / 430.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1082, allocations: 322.8 kB / 431.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.018e-05/0.1082, allocations: 23.86 kB / 431.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.1083, allocations: 23.94 kB / 431.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.1084, allocations: 52.83 kB / 431.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1084, allocations: 0 / 431.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001709/0.1086, allocations: 85.56 kB / 431.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1086, allocations: 12 kB / 431.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1086, allocations: 0 / 431.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1086, allocations: 0 / 431.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.1088, allocations: 39.91 kB / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1088, allocations: 0 / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.556e-05/0.1089, allocations: 15.94 kB / 431.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.1089, allocations: 0 / 431.5 MB, free: 15.21 MB / 366.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.0001001/0.109, allocations: 113.8 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.109, allocations: 19.89 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.1091, allocations: 8.312 kB / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.1091, allocations: 0 / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1091, allocations: 4 kB / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1091, allocations: 7.969 kB / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.1093, allocations: 193.6 kB / 431.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1093, allocations: 3.938 kB / 431.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.1094, allocations: 19.98 kB / 431.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1094, allocations: 0 / 431.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.1094, allocations: 4 kB / 431.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1094, allocations: 4 kB / 431.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1094, allocations: 0 / 431.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.1097, allocations: 199.4 kB / 432.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/0.1098, allocations: 93.28 kB / 432.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.1098, allocations: 4 kB / 432.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.1099, allocations: 11.98 kB / 432.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-05/0.1099, allocations: 0 / 432.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.1099, allocations: 8.062 kB / 432.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.048e-05/0.11, allocations: 109.9 kB / 432.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.11, allocations: 0 / 432.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.1102, allocations: 19.95 kB / 432.3 MB, free: 14.31 MB / 366.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.0005495/0.1108, allocations: 0.7319 MB / 433 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.1109, allocations: 47.97 kB / 433.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1109, allocations: 3.938 kB / 433.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.464e-05/0.111, allocations: 27.92 kB / 433.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.1113, allocations: 23.92 kB / 433.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.1131, allocations: 1.582 MB / 434.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.1134, allocations: 0.7041 MB / 435.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.263e-05/0.1134, allocations: 4 kB / 435.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.1135, allocations: 31.42 kB / 435.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1135, allocations: 0 / 435.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.1394, allocations: 2.335 MB / 437.8 MB, free: 8.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.02, allocations: 7.812 kB / 437.8 MB, free: 8.742 MB / 366.1 MB " [Timeout remaining time 652] (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.00019992 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 10.628260880010203]