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.001301/0.001301, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001352/0.001352, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.334/1.334, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 45.89 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1105, allocations: 49.44 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004452/0.115, allocations: 2.564 MB / 352.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.1182, allocations: 1.781 MB / 354 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004301/0.1187, allocations: 7.938 kB / 354 MB, free: 296 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.12, allocations: 0.5127 MB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009312/0.121, allocations: 398.8 kB / 354.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1227, allocations: 0.6371 MB / 355.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.1238, allocations: 0.791 MB / 356.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.124, allocations: 105.8 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005706/0.1246, allocations: 334.8 kB / 356.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005255/0.1251, allocations: 370.6 kB / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1253, allocations: 40 kB / 357.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004015/0.1257, allocations: 215.7 kB / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1259, allocations: 207.4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003447/0.1263, allocations: 298.2 kB / 357.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1273, allocations: 0.8413 MB / 358.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1273, allocations: 4 kB / 358.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1273, allocations: 0 / 358.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1274, allocations: 0 / 358.7 MB, free: 11.57 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.001651/0.129, allocations: 1.195 MB / 359.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1291, allocations: 8.031 kB / 359.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.71e-05/0.1291, allocations: 62.7 kB / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.1293, allocations: 84 kB / 360.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007073/0.13, allocations: 0.5817 MB / 360.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.13, allocations: 27.92 kB / 360.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.1301, allocations: 24 kB / 360.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006419/0.1307, allocations: 350.7 kB / 361.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1308, allocations: 0 / 361.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.1308, allocations: 15.92 kB / 361.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.1308, allocations: 8 kB / 361.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003718/0.1312, allocations: 175.8 kB / 361.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1326, allocations: 1.341 MB / 362.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006493/0.1333, allocations: 354.8 kB / 362.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003536/0.1336, allocations: 178.5 kB / 363.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1337, allocations: 7.984 kB / 363.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005694/0.1342, allocations: 467.2 kB / 363.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.843e-06/0.1342, allocations: 0 / 363.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001324/0.1356, allocations: 0.7357 MB / 364.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002119/0.1358, allocations: 460.9 kB / 364.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.1369, allocations: 0.9262 MB / 365.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.1369, allocations: 49.69 kB / 365.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.1372, allocations: 300.8 kB / 366 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.55e-05/0.1373, allocations: 118.5 kB / 366.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.1374, allocations: 98.11 kB / 366.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1375, allocations: 322 kB / 366.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.1378, allocations: 160.8 kB / 366.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.1383, allocations: 346.5 kB / 367 MB, free: 2.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.1391, allocations: 0.5821 MB / 367.6 MB, free: 1.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1391, allocations: 0 / 367.6 MB, free: 1.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001047/0.1402, allocations: 0.6729 MB / 368.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/0.1402, allocations: 97.09 kB / 368.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1403, allocations: 4 kB / 368.4 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1403, allocations: 4 kB / 368.4 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.1405, allocations: 67.84 kB / 368.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.1406, allocations: 4.234 kB / 368.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1408, allocations: 51.94 kB / 368.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.1409, allocations: 27.98 kB / 368.6 MB, free: 1.02 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.0004167/0.1413, allocations: 398.7 kB / 368.9 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.1414, allocations: 79.06 kB / 369 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.1416, allocations: 74.2 kB / 369.1 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1416, allocations: 8.188 kB / 369.1 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.1416, allocations: 4.281 kB / 369.1 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1416, allocations: 3.984 kB / 369.1 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1464/0.288, allocations: 0.9578 MB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2881, allocations: 5.672 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.2882, allocations: 22.34 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.2882, allocations: 2.344 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/0.2883, allocations: 21.33 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.2883, allocations: 1.922 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2883, allocations: 1.719 kB / 370.1 MB, free: 25.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.2895, allocations: 0.7776 MB / 370.9 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.2897, allocations: 151.4 kB / 371 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.2898, allocations: 22.19 kB / 371.1 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.29, allocations: 24.97 kB / 371.1 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.2902, allocations: 43.33 kB / 371.1 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.2902, allocations: 23.8 kB / 371.2 MB, free: 25.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009486/0.2912, allocations: 0.6699 MB / 371.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2912, allocations: 1.094 kB / 371.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.2919, allocations: 150.4 kB / 372 MB, free: 25.16 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.002307/0.2942, allocations: 1.704 MB / 373.7 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009547/0.2952, allocations: 0.6405 MB / 374.3 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2952, allocations: 1.375 kB / 374.3 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.2956, allocations: 443.8 kB / 374.8 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008304/0.2965, allocations: 178.8 kB / 374.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008609/0.3051, allocations: 6.595 MB / 381.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.3056, allocations: 0.9359 MB / 382.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004211/0.3061, allocations: 110.5 kB / 382.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/0.3064, allocations: 235.7 kB / 382.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3064, allocations: 0 / 382.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/0.4129, allocations: 15.35 MB / 398.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.4131, allocations: 225 kB / 398.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/2.705, allocations: 4 kB / 398.4 MB, free: 9.211 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)