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.001452/0.001452, allocations: 101.8 kB / 16.5 MB, free: 6.648 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.001626/0.001626, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.426/1.426, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 46.89 kB / 300 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09959, allocations: 49.45 MB / 349.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004255/0.1039, allocations: 2.564 MB / 352.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003043/0.107, allocations: 1.816 MB / 353.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003108/0.1073, allocations: 7.938 kB / 353.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1085, allocations: 0.5111 MB / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000777/0.1093, allocations: 394.8 kB / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.1108, allocations: 0.6125 MB / 355.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/0.1117, allocations: 0.7597 MB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1119, allocations: 101.8 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004025/0.1123, allocations: 290.6 kB / 356.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/0.1127, allocations: 342.6 kB / 356.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.1128, allocations: 16 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.1132, allocations: 187.8 kB / 357.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.1134, allocations: 187.3 kB / 357.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.1137, allocations: 274.2 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007638/0.1144, allocations: 0.8023 MB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1144, allocations: 0 / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1145, allocations: 4 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.1145, allocations: 0 / 358.3 MB, free: 11.8 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.001741/0.1162, allocations: 1.207 MB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1163, allocations: 8.031 kB / 359.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.784e-05/0.1163, allocations: 54.73 kB / 359.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1165, allocations: 80 kB / 359.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007855/0.1173, allocations: 0.5893 MB / 360.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.1173, allocations: 23.95 kB / 360.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.1174, allocations: 20 kB / 360.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.118, allocations: 354.8 kB / 360.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1181, allocations: 0 / 360.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.1181, allocations: 8 kB / 360.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.1181, allocations: 11.98 kB / 360.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.1186, allocations: 183.8 kB / 360.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.1202, allocations: 1.341 MB / 362.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007036/0.1209, allocations: 354.8 kB / 362.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.1212, allocations: 175.3 kB / 362.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1213, allocations: 4 kB / 362.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006102/0.1219, allocations: 467.2 kB / 363.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.873e-06/0.1219, allocations: 0 / 363.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001422/0.1233, allocations: 0.7422 MB / 363.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002209/0.1236, allocations: 464.9 kB / 364.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.1247, allocations: 0.9262 MB / 365.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.1248, allocations: 41.7 kB / 365.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.125, allocations: 312.8 kB / 365.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1251, allocations: 106.6 kB / 365.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.1253, allocations: 94.12 kB / 365.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1254, allocations: 326 kB / 366.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.1257, allocations: 152.9 kB / 366.3 MB, free: 3.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004403/0.1262, allocations: 354.4 kB / 366.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.1269, allocations: 0.5822 MB / 367.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.1269, allocations: 7.938 kB / 367.2 MB, free: 2.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001064/0.128, allocations: 0.6651 MB / 367.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-05/0.1281, allocations: 103.6 kB / 368 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1281, allocations: 8.281 kB / 368 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1281, allocations: 8 kB / 368 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.1284, allocations: 59.91 kB / 368.1 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.1284, allocations: 11.94 kB / 368.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.1287, allocations: 47.67 kB / 368.1 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.1288, allocations: 16 kB / 368.2 MB, free: 1.246 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.0003837/0.1292, allocations: 410.6 kB / 368.6 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.1293, allocations: 79.06 kB / 368.6 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.1294, allocations: 78.16 kB / 368.7 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1294, allocations: 4 kB / 368.7 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.1294, allocations: 3.984 kB / 368.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1294, allocations: 4.125 kB / 368.7 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1952/0.3247, allocations: 0.9504 MB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.3247, allocations: 5.703 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.3249, allocations: 27.41 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.325, allocations: 2.312 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.3251, allocations: 15.7 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-05/0.3251, allocations: 2.438 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3251, allocations: 4.062 kB / 369.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.3272, allocations: 0.7734 MB / 370.5 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.3276, allocations: 150.1 kB / 370.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.3277, allocations: 23.92 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.3281, allocations: 26.09 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3283, allocations: 38.95 kB / 370.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-05/0.3284, allocations: 22.45 kB / 370.8 MB, free: 25.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001526/0.3299, allocations: 0.6722 MB / 371.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.33, allocations: 0 / 371.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009623/0.3309, allocations: 151.3 kB / 371.6 MB, free: 25.05 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.003325/0.3343, allocations: 1.724 MB / 373.3 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.3356, allocations: 0.6104 MB / 373.9 MB, free: 23.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3356, allocations: 0 / 373.9 MB, free: 23.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.3363, allocations: 439.8 kB / 374.3 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.3375, allocations: 154 kB / 374.5 MB, free: 23.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.3503, allocations: 6.6 MB / 381.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006716/0.351, allocations: 0.9354 MB / 382 MB, free: 19.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005798/0.3516, allocations: 106.5 kB / 382.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/0.352, allocations: 231.5 kB / 382.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.352, allocations: 0 / 382.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03804/0.3901, allocations: 14.98 MB / 397.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.3903, allocations: 243.4 kB / 397.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/2.622, allocations: 0 / 397.6 MB, free: 9.805 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)