Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.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.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 57.59 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.08782, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004332/0.09219, allocations: 2.58 MB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.09548, allocations: 1.929 MB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.09583, allocations: 11.88 kB / 362.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.09704, allocations: 0.5336 MB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.0981, allocations: 493.6 kB / 363.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.09949, allocations: 0.5452 MB / 363.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009508/0.1005, allocations: 0.8262 MB / 364.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1007, allocations: 113.6 kB / 364.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004707/0.1012, allocations: 338.7 kB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004782/0.1016, allocations: 370.5 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.1018, allocations: 44 kB / 365.3 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004199/0.1022, allocations: 211.8 kB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.1024, allocations: 207.3 kB / 365.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003249/0.1028, allocations: 314.1 kB / 366 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009447/0.1037, allocations: 0.8685 MB / 366.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1037, allocations: 0 / 366.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1038, allocations: 0 / 366.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1038, allocations: 0 / 366.9 MB, free: 4.637 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001762/0.1055, allocations: 1.234 MB / 368.1 MB, free: 3.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1056, allocations: 8.031 kB / 368.1 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.637e-05/0.1057, allocations: 58.73 kB / 368.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.1058, allocations: 87.89 kB / 368.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007891/0.1066, allocations: 0.5897 MB / 368.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.1067, allocations: 20.38 kB / 368.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.1067, allocations: 31.91 kB / 368.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.1073, allocations: 354.7 kB / 369.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1073, allocations: 0 / 369.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.1074, allocations: 8 kB / 369.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.1074, allocations: 8 kB / 369.3 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003795/0.1078, allocations: 183.8 kB / 369.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.1092, allocations: 1.352 MB / 370.8 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007043/0.1099, allocations: 354.7 kB / 371.2 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1429/0.2528, allocations: 169.7 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.2529, allocations: 5.641 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000592/0.2535, allocations: 464.2 kB / 371.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/0.2535, allocations: 0.875 kB / 371.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001405/0.2549, allocations: 0.7438 MB / 372.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.2551, allocations: 461.5 kB / 373 MB, free: 19.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.2562, allocations: 0.9697 MB / 374 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.2563, allocations: 43.8 kB / 374 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.2565, allocations: 311.3 kB / 374.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.889e-05/0.2566, allocations: 111.7 kB / 374.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.2567, allocations: 94.7 kB / 374.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.2568, allocations: 325.2 kB / 374.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.2571, allocations: 152.8 kB / 375 MB, free: 18.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.2575, allocations: 357.2 kB / 375.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005955/0.2581, allocations: 0.5791 MB / 375.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2581, allocations: 6.312 kB / 375.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009469/0.2591, allocations: 0.6741 MB / 376.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.2591, allocations: 100.5 kB / 376.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2591, allocations: 5.625 kB / 376.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2592, allocations: 9.312 kB / 376.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.2594, allocations: 66.59 kB / 376.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.2594, allocations: 6 kB / 376.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.2597, allocations: 45 kB / 376.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.2598, allocations: 23.19 kB / 376.8 MB, free: 17.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0003202/0.2601, allocations: 410 kB / 377.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2602, allocations: 85.44 kB / 377.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.2603, allocations: 80.44 kB / 377.4 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2603, allocations: 3.25 kB / 377.4 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.2603, allocations: 1.594 kB / 377.4 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.2604, allocations: 2.453 kB / 377.4 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.2614, allocations: 0.9808 MB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2615, allocations: 1.906 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.477e-05/0.2616, allocations: 20.61 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2616, allocations: 6.469 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.2616, allocations: 16.73 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2616, allocations: 6.531 kB / 378.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2616, allocations: 1.953 kB / 378.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009413/0.2626, allocations: 0.7825 MB / 379.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.2627, allocations: 161.7 kB / 379.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.2628, allocations: 22.56 kB / 379.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.263, allocations: 23.8 kB / 379.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.978e-05/0.2632, allocations: 44.05 kB / 379.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.262e-05/0.2632, allocations: 24.05 kB / 379.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007366/0.2639, allocations: 0.6981 MB / 380.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.264, allocations: 0 / 380.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.2645, allocations: 155.4 kB / 380.3 MB, free: 15.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.002031/0.2665, allocations: 1.7 MB / 382 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008635/0.2674, allocations: 0.6333 MB / 382.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2674, allocations: 0 / 382.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004432/0.2679, allocations: 437 kB / 383.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008267/0.2687, allocations: 187.4 kB / 383.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007605/0.2763, allocations: 6.623 MB / 389.9 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.2767, allocations: 0.9378 MB / 390.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003392/0.2771, allocations: 115.6 kB / 391 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.2774, allocations: 247.2 kB / 391.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2774, allocations: 1.375 kB / 391.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3089, allocations: 15.89 MB / 407.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.171, allocations: 15.95 kB / 407.1 MB, free: 12.66 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches