Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009844/0.0009839, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 226.5 MB / 244.7 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007978/0.0007978, allocations: 91.5 kB / 296.7 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002296, allocations: 8 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1974, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002149/0.1996, allocations: 2.164 MB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.2019, allocations: 1.858 MB / 412.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000307/0.2023, allocations: 7.938 kB / 412.2 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009107/0.2032, allocations: 491.9 kB / 412.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006294/0.2038, allocations: 422 kB / 413 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2051, allocations: 0.558 MB / 413.6 MB, free: 22.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000541/0.2056, allocations: 0.7168 MB / 414.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2058, allocations: 101.6 kB / 414.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.2061, allocations: 282.8 kB / 414.7 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.2063, allocations: 318.8 kB / 415 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.2064, allocations: 16 kB / 415 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.2066, allocations: 167.8 kB / 415.2 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.2068, allocations: 179.4 kB / 415.4 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.207, allocations: 292 kB / 415.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.2074, allocations: 0.652 MB / 416.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2074, allocations: 0 / 416.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2074, allocations: 0 / 416.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.2075, allocations: 0 / 416.3 MB, free: 19.53 MB / 298.7 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.001106/0.2086, allocations: 1.11 MB / 417.4 MB, free: 18.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.2086, allocations: 8.031 kB / 417.4 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.072e-05/0.2087, allocations: 50.73 kB / 417.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.554e-05/0.2088, allocations: 87.98 kB / 417.6 MB, free: 18.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005668/0.2094, allocations: 0.5936 MB / 418.1 MB, free: 17.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.2094, allocations: 20.33 kB / 418.2 MB, free: 17.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.2094, allocations: 31.92 kB / 418.2 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.2099, allocations: 358.7 kB / 418.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2099, allocations: 4 kB / 418.6 MB, free: 17.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.21, allocations: 8 kB / 418.6 MB, free: 17.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.21, allocations: 11.91 kB / 418.6 MB, free: 17.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.2103, allocations: 175.8 kB / 418.7 MB, free: 16.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.2114, allocations: 1.356 MB / 420.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005389/0.2119, allocations: 350.8 kB / 420.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.2122, allocations: 175.4 kB / 420.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2122, allocations: 4 kB / 420.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004423/0.2127, allocations: 459.2 kB / 421.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 2.424e-06/0.2127, allocations: 0 / 421.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001099/0.2138, allocations: 0.7406 MB / 421.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.2139, allocations: 456.9 kB / 422.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009238/0.2148, allocations: 0.9732 MB / 423.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.2149, allocations: 41.7 kB / 423.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.2151, allocations: 320.7 kB / 423.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.34e-05/0.2152, allocations: 114.6 kB / 423.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.2152, allocations: 8 kB / 423.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.481e-05/0.2153, allocations: 329.9 kB / 424 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.2155, allocations: 148.9 kB / 424.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.2159, allocations: 350.5 kB / 424.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.2164, allocations: 0.5772 MB / 425.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2164, allocations: 0 / 425.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008261/0.2173, allocations: 0.6731 MB / 425.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-05/0.2173, allocations: 97.09 kB / 425.9 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2173, allocations: 4 kB / 425.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.2174, allocations: 8 kB / 425.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.2176, allocations: 59.84 kB / 425.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.2176, allocations: 11.98 kB / 425.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.2179, allocations: 55.89 kB / 426 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.2179, allocations: 20 kB / 426 MB, free: 9.09 MB / 298.7 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],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003121/0.2182, allocations: 390.7 kB / 426.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.402e-05/0.2183, allocations: 87.03 kB / 426.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.2184, allocations: 82.58 kB / 426.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2185, allocations: 8 kB / 426.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2185, allocations: 4 kB / 426.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.2185, allocations: 7.984 kB / 426.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009355/0.2194, allocations: 0.974 MB / 427.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2194, allocations: 0 / 427.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.683e-05/0.2195, allocations: 19.98 kB / 427.6 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2195, allocations: 11.88 kB / 427.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.2196, allocations: 15.98 kB / 427.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.2196, allocations: 8 kB / 427.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.2196, allocations: 0 / 427.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008256/0.2204, allocations: 0.7747 MB / 428.4 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.2206, allocations: 176 kB / 428.6 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.797e-05/0.2207, allocations: 27.94 kB / 428.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.2209, allocations: 31.97 kB / 428.6 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.221, allocations: 27.97 kB / 428.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.554e-05/0.221, allocations: 23.98 kB / 428.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006077/0.2216, allocations: 0.6982 MB / 429.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2217, allocations: 0 / 429.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004868/0.2221, allocations: 155.9 kB / 429.5 MB, free: 5.422 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001898/0.2241, allocations: 1.713 MB / 431.2 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007686/0.2248, allocations: 0.6112 MB / 431.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2249, allocations: 0 / 431.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.2252, allocations: 426.9 kB / 432.3 MB, free: 2.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008474/0.2261, allocations: 158 kB / 432.4 MB, free: 2.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006192/0.2323, allocations: 4.55 MB / 437 MB, free: 13.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.2328, allocations: 0.9488 MB / 437.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.2332, allocations: 243.7 kB / 438.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2332, allocations: 0 / 438.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.859/4.092, allocations: 11.68 MB / 449.8 MB, free: 0.9219 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches