Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 200.2 kB / 8.54 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009214/0.0009216, allocations: 92.81 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09713/0.09808, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08473/0.1828, allocations: 51.49 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2151/0.3979, allocations: 81.63 MB / 476.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/0.3981, allocations: 87.91 kB / 476.4 MB, free: 11.17 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01761/0.4158, allocations: 6.895 MB / 483.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.4158, allocations: 8 kB / 483.3 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.36e-05/0.4159, allocations: 19.72 kB / 483.4 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.4163, allocations: 282.9 kB / 483.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.4163, allocations: 4.688 kB / 483.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.4163, allocations: 4 kB / 483.6 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001017/0.4164, allocations: 38.42 kB / 483.7 MB, free: 5.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.4166, allocations: 150.5 kB / 483.8 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.4167, allocations: 3.938 kB / 483.8 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.4167, allocations: 0 / 483.8 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.4167, allocations: 4.75 kB / 483.8 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.4171, allocations: 439.6 kB / 484.3 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.4173, allocations: 121.9 kB / 484.4 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.144e-05/0.4174, allocations: 57.16 kB / 484.4 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.4174, allocations: 0 / 484.4 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.853e-05/0.4175, allocations: 91.11 kB / 484.5 MB, free: 4.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.4175, allocations: 0 / 484.5 MB, free: 4.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002199/0.4177, allocations: 104.6 kB / 484.6 MB, free: 4.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.4178, allocations: 168.3 kB / 484.8 MB, free: 4.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.418, allocations: 245 kB / 485 MB, free: 4.297 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.418, allocations: 29.7 kB / 485.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.876e-05/0.418, allocations: 95.22 kB / 485.2 MB, free: 4.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.4181, allocations: 18.98 kB / 485.2 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.4181, allocations: 0 / 485.2 MB, free: 4.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/0.4181, allocations: 329.9 kB / 485.5 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.023e-05/0.4182, allocations: 21.62 kB / 485.5 MB, free: 3.816 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.344e-05/0.4182, allocations: 77.05 kB / 485.6 MB, free: 3.727 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.096e-05/0.4183, allocations: 30.17 kB / 485.6 MB, free: 3.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4183, allocations: 0 / 485.6 MB, free: 3.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001621/0.4185, allocations: 114.3 kB / 485.7 MB, free: 3.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.4185, allocations: 4 kB / 485.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.4185, allocations: 4 kB / 485.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.4185, allocations: 3.938 kB / 485.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.226e-05/0.4186, allocations: 19.92 kB / 485.8 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4186, allocations: 4 kB / 485.8 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.408e-05/0.4187, allocations: 9.969 kB / 485.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.4187, allocations: 4 kB / 485.8 MB, free: 3.559 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 7.07e-05/0.4188, allocations: 120.2 kB / 485.9 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.406e-05/0.4189, allocations: 64.78 kB / 486 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001641/0.4191, allocations: 100.2 kB / 486.1 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4191, allocations: 7.984 kB / 486.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4191, allocations: 3.938 kB / 486.1 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4191, allocations: 0 / 486.1 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.4192, allocations: 211.9 kB / 486.3 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4192, allocations: 0 / 486.3 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.63e-05/0.4193, allocations: 16.05 kB / 486.3 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4193, allocations: 0 / 486.3 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.4193, allocations: 7.312 kB / 486.3 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4193, allocations: 1.875 kB / 486.3 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4193, allocations: 1.312 kB / 486.3 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000168/0.4195, allocations: 194.1 kB / 486.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002023/0.4197, allocations: 0.5718 MB / 487.1 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/0.4198, allocations: 115.5 kB / 487.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.4198, allocations: 0 / 487.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.4199, allocations: 7.984 kB / 487.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.42, allocations: 7.562 kB / 487.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.42, allocations: 7.906 kB / 487.2 MB, free: 2.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001475/0.4201, allocations: 200.1 kB / 487.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000858/0.421, allocations: 38.05 kB / 487.4 MB, free: 1.902 MB / 346.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: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006117/0.4216, allocations: 309.7 kB / 487.7 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001654/0.4218, allocations: 74.48 kB / 487.8 MB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4218, allocations: 4.312 kB / 487.8 MB, free: 1.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.4219, allocations: 38.23 kB / 487.9 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.4222, allocations: 50.17 kB / 487.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004748/0.4227, allocations: 256.3 kB / 488.2 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.423, allocations: 0.7628 MB / 488.9 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.423, allocations: 0 / 488.9 MB, free: 0.5547 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat