Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002267/0.002267, allocations: 202.6 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.666/1.666, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 99.97 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4633/0.4633, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002941, allocations: 8 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3857/0.3861, allocations: 63.25 MB / 0.5193 GB, free: 37.54 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.5287, allocations: 88.17 MB / 0.6054 GB, free: 15.24 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.5289, allocations: 71.94 kB / 0.6055 GB, free: 15.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005104/0.5341, allocations: 1.764 MB / 0.6072 GB, free: 13.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5341, allocations: 0 / 0.6072 GB, free: 13.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.5341, allocations: 4 kB / 0.6072 GB, free: 13.39 MB / 426.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.0005152/0.5346, allocations: 383.1 kB / 0.6075 GB, free: 12.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.5347, allocations: 12.03 kB / 0.6076 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.461e-05/0.5347, allocations: 34.56 kB / 0.6076 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.72e-05/0.5348, allocations: 19.89 kB / 0.6076 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.535, allocations: 190.9 kB / 0.6078 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.535, allocations: 4 kB / 0.6078 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.5351, allocations: 8 kB / 0.6078 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.5352, allocations: 79.77 kB / 0.6079 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.5353, allocations: 0 / 0.6079 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.5353, allocations: 0 / 0.6079 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.5353, allocations: 4 kB / 0.6079 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.855e-05/0.5354, allocations: 35.98 kB / 0.6079 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000594/0.536, allocations: 356.5 kB / 0.6083 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.5361, allocations: 50.52 kB / 0.6083 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.896e-06/0.5361, allocations: 0 / 0.6083 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001527/0.5363, allocations: 79.53 kB / 0.6084 GB, free: 11.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.5363, allocations: 3.938 kB / 0.6084 GB, free: 11.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002291/0.5365, allocations: 89.52 kB / 0.6085 GB, free: 11.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.5366, allocations: 55.34 kB / 0.6085 GB, free: 11.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.5367, allocations: 129.1 kB / 0.6086 GB, free: 11.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.5367, allocations: 29.7 kB / 0.6087 GB, free: 11.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.5368, allocations: 96.12 kB / 0.6088 GB, free: 11.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/0.5368, allocations: 15.72 kB / 0.6088 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.5368, allocations: 4 kB / 0.6088 GB, free: 11.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.537, allocations: 322.8 kB / 0.6091 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-05/0.537, allocations: 16 kB / 0.6091 GB, free: 11.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.466e-05/0.5371, allocations: 34.56 kB / 0.6091 GB, free: 11.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.129e-05/0.5371, allocations: 20.3 kB / 0.6092 GB, free: 11.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5371, allocations: 0 / 0.6092 GB, free: 11.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001428/0.5373, allocations: 89.52 kB / 0.6092 GB, free: 11.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5373, allocations: 12.02 kB / 0.6093 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.5373, allocations: 0 / 0.6093 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.5373, allocations: 7.938 kB / 0.6093 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.822e-05/0.5374, allocations: 15.97 kB / 0.6093 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.5374, allocations: 4 kB / 0.6093 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.809e-05/0.5375, allocations: 4 kB / 0.6093 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.5375, allocations: 4 kB / 0.6093 GB, free: 11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001004/0.5376, allocations: 125.2 kB / 0.6094 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.5377, allocations: 11.91 kB / 0.6094 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.5377, allocations: 20.67 kB / 0.6094 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.5377, allocations: 0 / 0.6094 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5377, allocations: 0 / 0.6094 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.5377, allocations: 0 / 0.6094 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/0.5381, allocations: 342.5 kB / 0.6098 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5381, allocations: 0 / 0.6098 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.168e-05/0.5381, allocations: 7.953 kB / 0.6098 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.5381, allocations: 0 / 0.6098 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.5382, allocations: 11.98 kB / 0.6098 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.5382, allocations: 0 / 0.6098 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.5382, allocations: 0 / 0.6098 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.5384, allocations: 191.4 kB / 0.61 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.5384, allocations: 81.02 kB / 0.61 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.5385, allocations: 8.172 kB / 0.6101 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.485e-05/0.5386, allocations: 7.984 kB / 0.6101 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.5386, allocations: 23.92 kB / 0.6101 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.5386, allocations: 0 / 0.6101 GB, free: 10.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.842e-05/0.5387, allocations: 103.3 kB / 0.6102 GB, free: 9.988 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5387, allocations: 0 / 0.6102 GB, free: 9.988 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002265/0.539, allocations: 15.91 kB / 0.6102 GB, free: 9.973 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004858/0.5395, allocations: 0.7242 MB / 0.6109 GB, free: 9.219 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.5396, allocations: 43.92 kB / 0.6109 GB, free: 9.176 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5396, allocations: 0 / 0.6109 GB, free: 9.176 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.531e-05/0.5397, allocations: 27.98 kB / 0.611 GB, free: 9.148 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.5399, allocations: 15.94 kB / 0.611 GB, free: 9.133 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.5411, allocations: 0.9065 MB / 0.6119 GB, free: 8.172 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.5414, allocations: 0.7004 MB / 0.6126 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.42e-05/0.5414, allocations: 12.42 kB / 0.6126 GB, free: 7.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.948e-05/0.5415, allocations: 27.42 kB / 0.6126 GB, free: 7.406 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5415, allocations: 0 / 0.6126 GB, free: 7.406 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01322/0.5547, allocations: 1.91 MB / 0.6145 GB, free: 5.609 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.5549, allocations: 186.9 kB / 0.6146 GB, free: 5.355 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.227, allocations: 0 / 0.6146 GB, free: 5.355 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat