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.001724/0.001725, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 71.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.282, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004639/0.2867, allocations: 2.575 MB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003457/0.2902, allocations: 1.937 MB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.2904, allocations: 7.938 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.2917, allocations: 0.5448 MB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008774/0.2925, allocations: 482.3 kB / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.2939, allocations: 0.5369 MB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009475/0.2948, allocations: 0.8417 MB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.295, allocations: 102 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003887/0.2954, allocations: 330.8 kB / 416.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004508/0.2959, allocations: 378.5 kB / 416.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.09e-05/0.296, allocations: 40 kB / 416.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004266/0.2964, allocations: 231.8 kB / 416.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.2967, allocations: 203.3 kB / 417 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003357/0.297, allocations: 322 kB / 417.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.2981, allocations: 0.8823 MB / 418.2 MB, free: 8.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2981, allocations: 0 / 418.2 MB, free: 8.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2981, allocations: 4 kB / 418.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.2981, allocations: 0 / 418.2 MB, free: 8.078 MB / 334.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.001769/0.2999, allocations: 1.249 MB / 419.4 MB, free: 6.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.2999, allocations: 8.031 kB / 419.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.892e-05/0.3, allocations: 66.7 kB / 419.5 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3002, allocations: 84.42 kB / 419.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008433/0.301, allocations: 0.6021 MB / 420.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.3011, allocations: 24.31 kB / 420.2 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.3011, allocations: 31.88 kB / 420.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006535/0.3018, allocations: 354.8 kB / 420.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3018, allocations: 4 kB / 420.6 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.3018, allocations: 8 kB / 420.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3019, allocations: 8 kB / 420.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.3023, allocations: 179.8 kB / 420.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.3039, allocations: 1.341 MB / 422.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007501/0.3047, allocations: 366.7 kB / 422.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/0.3051, allocations: 175.3 kB / 422.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.3051, allocations: 8 kB / 422.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006909/0.3058, allocations: 463.2 kB / 423.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 4.148e-06/0.3058, allocations: 0 / 423.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00148/0.3073, allocations: 0.7508 MB / 423.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002831/0.3076, allocations: 468.8 kB / 424.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.3089, allocations: 0.9733 MB / 425.3 MB, free: 468 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.528e-05/0.3089, allocations: 45.7 kB / 425.3 MB, free: 416 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.3093, allocations: 316.9 kB / 425.7 MB, free: 92 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3094, allocations: 107.3 kB / 425.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.3096, allocations: 102.1 kB / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3098, allocations: 322 kB / 426.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.3101, allocations: 156.9 kB / 426.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/0.3106, allocations: 354.4 kB / 426.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.3114, allocations: 0.5738 MB / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3115, allocations: 0 / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001159/0.3126, allocations: 0.6697 MB / 427.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/0.3127, allocations: 105 kB / 428 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3127, allocations: 4 kB / 428 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.3128, allocations: 8.281 kB / 428 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.313, allocations: 67.84 kB / 428.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.3131, allocations: 8.625 kB / 428.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.3134, allocations: 55.66 kB / 428.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.3134, allocations: 23.98 kB / 428.2 MB, free: 13.34 MB / 350.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.0004483/0.3139, allocations: 390.8 kB / 428.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.314, allocations: 95.42 kB / 428.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.3142, allocations: 78.58 kB / 428.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3142, allocations: 7.938 kB / 428.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3142, allocations: 0 / 428.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3142, allocations: 4 kB / 428.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.3155, allocations: 0.9777 MB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3156, allocations: 0 / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.989e-05/0.3157, allocations: 27.92 kB / 429.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3157, allocations: 7.938 kB / 429.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.3157, allocations: 20 kB / 429.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3157, allocations: 0 / 429.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3157, allocations: 3.984 kB / 429.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.3169, allocations: 0.7793 MB / 430.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.3171, allocations: 164.4 kB / 430.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.3173, allocations: 27.98 kB / 430.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.3175, allocations: 23.98 kB / 430.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.3176, allocations: 35.95 kB / 430.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.3177, allocations: 20 kB / 430.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00091/0.3186, allocations: 0.6982 MB / 431.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3186, allocations: 0 / 431.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005858/0.3192, allocations: 167.8 kB / 431.7 MB, free: 9.68 MB / 350.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.003083/0.3223, allocations: 1.722 MB / 433.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.3233, allocations: 0.6071 MB / 434 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3234, allocations: 0.5625 kB / 434 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005613/0.3239, allocations: 442 kB / 434.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008632/0.3248, allocations: 183.5 kB / 434.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009146/0.334, allocations: 6.348 MB / 441 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006546/0.3347, allocations: 0.9446 MB / 441.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003783/0.335, allocations: 108.8 kB / 442 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.3354, allocations: 247.3 kB / 442.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3354, allocations: 0 / 442.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07907/0.4145, allocations: 16.12 MB / 458.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.663/10.08, allocations: 11.84 kB / 458.4 MB, free: 14.81 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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