Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009168/0.0009166, allocations: 97.59 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.815e-05/1.818e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 63.26 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4808/0.603, allocations: 87.77 MB / 0.5902 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.6033, allocations: 58.61 kB / 0.5902 GB, free: 14.67 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009132/0.6124, allocations: 2.991 MB / 0.5931 GB, free: 12.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6125, allocations: 3.938 kB / 0.5932 GB, free: 12.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.6125, allocations: 0 / 0.5932 GB, free: 12.12 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006964/0.6132, allocations: 426.1 kB / 0.5936 GB, free: 11.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.6132, allocations: 15.97 kB / 0.5936 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.6133, allocations: 7.906 kB / 0.5936 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.6136, allocations: 212.2 kB / 0.5938 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.6136, allocations: 3.875 kB / 0.5938 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.6137, allocations: 12.69 kB / 0.5938 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.496e-05/0.6137, allocations: 23.19 kB / 0.5938 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.6139, allocations: 72.86 kB / 0.5939 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.6139, allocations: 3.984 kB / 0.5939 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.6139, allocations: 3.688 kB / 0.5939 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6139, allocations: 0 / 0.5939 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005237/0.6144, allocations: 353.3 kB / 0.5942 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.998e-05/0.6145, allocations: 45.55 kB / 0.5943 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.05e-05/0.6146, allocations: 20.61 kB / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.6146, allocations: 48 / 0.5943 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001243/0.6147, allocations: 77.58 kB / 0.5944 GB, free: 10.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.6148, allocations: 0 / 0.5944 GB, free: 10.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002106/0.615, allocations: 72.11 kB / 0.5944 GB, free: 10.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.615, allocations: 51.41 kB / 0.5945 GB, free: 10.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.283e-05/0.6151, allocations: 127.8 kB / 0.5946 GB, free: 10.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.6151, allocations: 25.7 kB / 0.5946 GB, free: 10.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.302e-05/0.6152, allocations: 99.14 kB / 0.5947 GB, free: 10.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.6152, allocations: 23.17 kB / 0.5948 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.6152, allocations: 0 / 0.5948 GB, free: 10.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.6154, allocations: 314.7 kB / 0.5951 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.446e-05/0.6154, allocations: 19.06 kB / 0.5951 GB, free: 10.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.313e-05/0.6155, allocations: 36.89 kB / 0.5951 GB, free: 10.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.983e-05/0.6155, allocations: 11.75 kB / 0.5951 GB, free: 10.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6155, allocations: 0 / 0.5951 GB, free: 10.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001213/0.6156, allocations: 80.28 kB / 0.5952 GB, free: 9.969 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.6157, allocations: 8 kB / 0.5952 GB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.6157, allocations: 0 / 0.5952 GB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.6157, allocations: 3.953 kB / 0.5952 GB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.6158, allocations: 19.98 kB / 0.5952 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.6158, allocations: 0 / 0.5952 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.416e-05/0.6159, allocations: 23.95 kB / 0.5952 GB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.6159, allocations: 4 kB / 0.5953 GB, free: 9.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete 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 8.433e-05/0.616, allocations: 114.4 kB / 0.5954 GB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001015/0.6161, allocations: 73.42 kB / 0.5954 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.6162, allocations: 15.84 kB / 0.5954 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.6162, allocations: 8.375 kB / 0.5955 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.6162, allocations: 3.938 kB / 0.5955 GB, free: 9.699 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.6162, allocations: 4.875 kB / 0.5955 GB, free: 9.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6162, allocations: 0 / 0.5955 GB, free: 9.695 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.6166, allocations: 330.6 kB / 0.5958 GB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.6166, allocations: 3.984 kB / 0.5958 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.6167, allocations: 15.95 kB / 0.5958 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.6167, allocations: 0 / 0.5958 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.6167, allocations: 4 kB / 0.5958 GB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6167, allocations: 3.984 kB / 0.5958 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.6167, allocations: 4 kB / 0.5958 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.617, allocations: 185.1 kB / 0.596 GB, free: 9.148 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.617, allocations: 85.05 kB / 0.5961 GB, free: 9.047 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.6171, allocations: 3.953 kB / 0.5961 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.6172, allocations: 23.97 kB / 0.5961 GB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.6173, allocations: 19.23 kB / 0.5961 GB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.6173, allocations: 8.047 kB / 0.5961 GB, free: 8.996 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.59e-05/0.6174, allocations: 94.41 kB / 0.5962 GB, free: 8.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6174, allocations: 0 / 0.5962 GB, free: 8.91 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000226/0.6176, allocations: 19.91 kB / 0.5962 GB, free: 8.891 MB / 394.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 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * 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.0004838/0.6181, allocations: 0.7165 MB / 0.5969 GB, free: 8.172 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.6182, allocations: 54 kB / 0.597 GB, free: 8.133 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6182, allocations: 0 / 0.597 GB, free: 8.133 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.203e-05/0.6183, allocations: 23 kB / 0.597 GB, free: 8.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.6185, allocations: 17.91 kB / 0.597 GB, free: 8.102 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005028/0.619, allocations: 180.3 kB / 0.5972 GB, free: 7.902 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.6194, allocations: 0.7041 MB / 0.5979 GB, free: 7.172 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.507e-05/0.6194, allocations: 4.672 kB / 0.5979 GB, free: 7.168 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.6195, allocations: 28.92 kB / 0.5979 GB, free: 7.152 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6195, allocations: 0 / 0.5979 GB, free: 7.152 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02137/0.6409, allocations: 1.712 MB / 0.5996 GB, free: 5.453 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.6411, allocations: 130.1 kB / 0.5997 GB, free: 5.262 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.491/2.132, allocations: 0 / 0.5997 GB, free: 5.262 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat