Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 104.4 kB / 16.92 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 191.4 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 51.05 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1046, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004171/0.1088, allocations: 2.522 MB / 352.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.112, allocations: 1.797 MB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003113/0.1123, allocations: 7.938 kB / 354.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.1136, allocations: 0.5359 MB / 355 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008563/0.1144, allocations: 422.5 kB / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.1161, allocations: 0.679 MB / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.1172, allocations: 0.7832 MB / 356.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.1174, allocations: 117.8 kB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005623/0.118, allocations: 318.9 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005359/0.1185, allocations: 358.6 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.1187, allocations: 40 kB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004262/0.1191, allocations: 207.8 kB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.1194, allocations: 211.3 kB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003489/0.1197, allocations: 302.2 kB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009522/0.1207, allocations: 0.8408 MB / 359.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1207, allocations: 8 kB / 359.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1207, allocations: 0 / 359.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.872e-05/0.1208, allocations: 0 / 359.3 MB, free: 11.19 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.001928/0.1227, allocations: 1.187 MB / 360.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1227, allocations: 11.97 kB / 360.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.077e-05/0.1228, allocations: 54.72 kB / 360.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.123, allocations: 84 kB / 360.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000844/0.1239, allocations: 0.5856 MB / 361.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.1239, allocations: 23.94 kB / 361.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.1239, allocations: 24 kB / 361.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.1246, allocations: 350.8 kB / 361.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1246, allocations: 3.938 kB / 361.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.1246, allocations: 11.98 kB / 361.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.544e-05/0.1247, allocations: 8 kB / 361.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000405/0.1251, allocations: 175.8 kB / 361.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.1266, allocations: 1.344 MB / 363.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007298/0.1273, allocations: 362.8 kB / 363.5 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003178/0.1277, allocations: 175.4 kB / 363.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.1277, allocations: 4 kB / 363.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000608/0.1283, allocations: 463.2 kB / 364.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.883e-06/0.1283, allocations: 0 / 364.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001438/0.1298, allocations: 0.7428 MB / 364.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000241/0.13, allocations: 456.9 kB / 365.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.1313, allocations: 0.9301 MB / 366.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.1313, allocations: 49.69 kB / 366.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.1316, allocations: 300.8 kB / 366.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.1317, allocations: 110.6 kB / 366.7 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.1319, allocations: 98.11 kB / 366.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.132, allocations: 326 kB / 367.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.1324, allocations: 156.9 kB / 367.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.1329, allocations: 354.4 kB / 367.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.1337, allocations: 0.5815 MB / 368.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1337, allocations: 0 / 368.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00114/0.1348, allocations: 0.6735 MB / 368.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.191e-05/0.1349, allocations: 97.09 kB / 368.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1349, allocations: 0 / 368.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.135, allocations: 8 kB / 368.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.1352, allocations: 71.91 kB / 369 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.1353, allocations: 4.281 kB / 369 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.1356, allocations: 51.66 kB / 369.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.1356, allocations: 20 kB / 369.1 MB, free: 0.6445 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.0004285/0.1361, allocations: 399.3 kB / 369.5 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.1362, allocations: 83.06 kB / 369.5 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.1364, allocations: 74.2 kB / 369.6 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1364, allocations: 8 kB / 369.6 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1364, allocations: 4 kB / 369.6 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1364, allocations: 0 / 369.6 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1605/0.2969, allocations: 0.9597 MB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.297, allocations: 1.156 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.2971, allocations: 20.64 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/0.2972, allocations: 2.562 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.768e-05/0.2972, allocations: 18.84 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.2972, allocations: 2.906 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.2973, allocations: 6.172 kB / 370.6 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.2985, allocations: 0.7754 MB / 371.4 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.2987, allocations: 153.2 kB / 371.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.2989, allocations: 25.33 kB / 371.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.2992, allocations: 23.11 kB / 371.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.2993, allocations: 41.09 kB / 371.7 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.933e-05/0.2994, allocations: 23.55 kB / 371.7 MB, free: 25.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.3005, allocations: 0.6734 MB / 372.4 MB, free: 25.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3006, allocations: 1 kB / 372.4 MB, free: 25.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008229/0.3014, allocations: 157 kB / 372.5 MB, free: 25.03 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.002255/0.3036, allocations: 1.713 MB / 374.2 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009427/0.3046, allocations: 0.6293 MB / 374.8 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3046, allocations: 1.469 kB / 374.8 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004726/0.3051, allocations: 444.7 kB / 375.3 MB, free: 23.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008409/0.3059, allocations: 178.1 kB / 375.5 MB, free: 23.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007881/0.3138, allocations: 6.467 MB / 381.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.3143, allocations: 0.9318 MB / 382.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003265/0.3146, allocations: 109.8 kB / 383 MB, free: 19.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.3149, allocations: 235.6 kB / 383.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3149, allocations: 0 / 383.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.3469, allocations: 15.57 MB / 398.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.151, allocations: 0 / 398.8 MB, free: 8.875 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches