Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Discrete",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.001005/0.001005, allocations: 202.3 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009335/0.0009335, allocations: 101.5 kB / 286.4 MB, free: 12.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2792/0.2792, allocations: 45.14 MB / 383.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1159/0.3951, allocations: 69.36 MB / 452.7 MB, free: 5.414 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.6638, allocations: 63.24 MB / 0.5039 GB, free: 35.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09928/0.7631, allocations: 89.24 MB / 0.591 GB, free: 5.098 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.7634, allocations: 59.97 kB / 0.5911 GB, free: 5.039 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.01343/0.7768, allocations: 4.372 MB / 0.5953 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.7769, allocations: 12 kB / 0.5953 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.7771, allocations: 43.61 kB / 0.5954 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.7774, allocations: 235.6 kB / 0.5956 GB, free: 300 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.7774, allocations: 15.98 kB / 0.5956 GB, free: 284 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.739e-05/0.7775, allocations: 15.98 kB / 0.5956 GB, free: 268 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002503/0.7777, allocations: 115.9 kB / 0.5957 GB, free: 152 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.7781, allocations: 199 kB / 0.5959 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.7781, allocations: 0 / 0.5959 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.7781, allocations: 7.938 kB / 0.5959 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.7782, allocations: 4 kB / 0.5959 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009838/0.7792, allocations: 0.5006 MB / 0.5964 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004248/0.7796, allocations: 268.3 kB / 0.5967 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.7798, allocations: 112.8 kB / 0.5968 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.7798, allocations: 8 kB / 0.5968 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.7802, allocations: 213.5 kB / 0.597 GB, free: 14.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.264e-06/0.7802, allocations: 4 kB / 0.597 GB, free: 14.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005395/0.7807, allocations: 309.5 kB / 0.5973 GB, free: 14.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.7808, allocations: 75.38 kB / 0.5974 GB, free: 14.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.781, allocations: 178.9 kB / 0.5976 GB, free: 14.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.781, allocations: 45.62 kB / 0.5976 GB, free: 14.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.7811, allocations: 109 kB / 0.5977 GB, free: 14.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.71e-05/0.7812, allocations: 94.86 kB / 0.5978 GB, free: 13.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.405e-05/0.7812, allocations: 0 / 0.5978 GB, free: 13.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.7813, allocations: 346.7 kB / 0.5981 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.7815, allocations: 85.3 kB / 0.5982 GB, free: 13.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.7818, allocations: 265.1 kB / 0.5985 GB, free: 13.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.782, allocations: 143.5 kB / 0.5986 GB, free: 13.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.782, allocations: 0 / 0.5986 GB, free: 13.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006152/0.7826, allocations: 368.8 kB / 0.5989 GB, free: 12.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.7827, allocations: 4 kB / 0.5989 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.7827, allocations: 8 kB / 0.599 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.7827, allocations: 8 kB / 0.599 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.7829, allocations: 64.56 kB / 0.599 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.783, allocations: 19.88 kB / 0.599 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.7832, allocations: 35.67 kB / 0.5991 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.7832, allocations: 24 kB / 0.5991 GB, free: 12.51 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 0.0001559/0.7834, allocations: 152.8 kB / 0.5992 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/0.7834, allocations: 31.62 kB / 0.5993 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.7835, allocations: 30.77 kB / 0.5993 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.7835, allocations: 4 kB / 0.5993 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7835, allocations: 48 / 0.5993 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.7836, allocations: 3.984 kB / 0.5993 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.7848, allocations: 0.7489 MB / 0.6 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.7848, allocations: 4 kB / 0.6 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.7849, allocations: 12 kB / 0.6001 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.7849, allocations: 3.906 kB / 0.6001 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.7849, allocations: 19.97 kB / 0.6001 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.785, allocations: 0 / 0.6001 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.785, allocations: 0 / 0.6001 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005348/0.7855, allocations: 423.6 kB / 0.6005 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006076/0.7861, allocations: 0.7849 MB / 0.6013 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.564e-05/0.7862, allocations: 112.7 kB / 0.6014 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.575e-05/0.7863, allocations: 15.98 kB / 0.6014 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.7865, allocations: 31.97 kB / 0.6014 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.7866, allocations: 27.95 kB / 0.6014 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.7867, allocations: 15.98 kB / 0.6014 GB, free: 10 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001235/0.7868, allocations: 145.5 kB / 0.6016 GB, free: 9.863 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001015/0.7878, allocations: 63.84 kB / 0.6016 GB, free: 9.801 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001812/0.788, allocations: 130.1 kB / 0.6018 GB, free: 9.664 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004659/0.7885, allocations: 293 kB / 0.6021 GB, free: 9.379 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.7885, allocations: 0 / 0.6021 GB, free: 9.379 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.7887, allocations: 155.9 kB / 0.6022 GB, free: 9.227 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.789, allocations: 31.31 kB / 0.6022 GB, free: 9.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.7901, allocations: 386.5 kB / 0.6026 GB, free: 8.805 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.7905, allocations: 0.8003 MB / 0.6034 GB, free: 7.977 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/0.7905, allocations: 0 / 0.6034 GB, free: 7.977 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat