Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001629/0.001628, allocations: 182 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 90.84 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09637/0.09637, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005541/0.0005545, allocations: 13.06 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08993, allocations: 50.37 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.2322, allocations: 78.82 MB / 0.5091 GB, free: 11.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.2326, allocations: 87.95 kB / 0.5092 GB, free: 11.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006979/0.2396, allocations: 1.637 MB / 0.5108 GB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2396, allocations: 0 / 0.5108 GB, free: 10.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.2397, allocations: 4 kB / 0.5108 GB, free: 10.16 MB / 362.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.0006306/0.2403, allocations: 391 kB / 0.5111 GB, free: 9.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.2404, allocations: 8.031 kB / 0.5111 GB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.963e-05/0.2404, allocations: 34.56 kB / 0.5112 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.2405, allocations: 15.81 kB / 0.5112 GB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.2408, allocations: 194.8 kB / 0.5114 GB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.2408, allocations: 11.94 kB / 0.5114 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.2408, allocations: 7.938 kB / 0.5114 GB, free: 9.414 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.2412, allocations: 144.9 kB / 0.5115 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2413, allocations: 0 / 0.5115 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.2413, allocations: 4 kB / 0.5115 GB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.2413, allocations: 4 kB / 0.5115 GB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.2415, allocations: 31.98 kB / 0.5116 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006094/0.2421, allocations: 309.6 kB / 0.5119 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.2425, allocations: 158.4 kB / 0.512 GB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.2425, allocations: 4 kB / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.2427, allocations: 67.42 kB / 0.5121 GB, free: 8.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.484e-06/0.2427, allocations: 0 / 0.5121 GB, free: 8.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005069/0.2432, allocations: 129.4 kB / 0.5122 GB, free: 8.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.2433, allocations: 77.11 kB / 0.5123 GB, free: 8.359 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.2435, allocations: 136.7 kB / 0.5124 GB, free: 8.219 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.2436, allocations: 29.7 kB / 0.5124 GB, free: 8.184 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.2436, allocations: 92.12 kB / 0.5125 GB, free: 8.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.2437, allocations: 15.81 kB / 0.5125 GB, free: 8.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.2437, allocations: 0 / 0.5125 GB, free: 8.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.2439, allocations: 322.8 kB / 0.5129 GB, free: 7.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.244, allocations: 27.98 kB / 0.5129 GB, free: 7.723 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.2442, allocations: 57.14 kB / 0.5129 GB, free: 7.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.2443, allocations: 41.42 kB / 0.513 GB, free: 7.609 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.197e-06/0.2443, allocations: 0 / 0.513 GB, free: 7.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003702/0.2447, allocations: 117.5 kB / 0.5131 GB, free: 7.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.2448, allocations: 4 kB / 0.5131 GB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.2448, allocations: 4.156 kB / 0.5131 GB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.2448, allocations: 4 kB / 0.5131 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.245, allocations: 15.98 kB / 0.5131 GB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.245, allocations: 7.938 kB / 0.5131 GB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.663e-05/0.2451, allocations: 16.08 kB / 0.5131 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2451, allocations: 4 kB / 0.5131 GB, free: 7.434 MB / 362.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: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001516/0.2453, allocations: 133.3 kB / 0.5133 GB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.2454, allocations: 53.59 kB / 0.5133 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.783e-05/0.2455, allocations: 12.31 kB / 0.5133 GB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2455, allocations: 4 kB / 0.5133 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2455, allocations: 4 kB / 0.5133 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2455, allocations: 0 / 0.5133 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.2461, allocations: 346.8 kB / 0.5137 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2461, allocations: 0 / 0.5137 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.2462, allocations: 19.98 kB / 0.5137 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.2463, allocations: 4 kB / 0.5137 GB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2463, allocations: 4 kB / 0.5137 GB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.2463, allocations: 3.938 kB / 0.5137 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.2463, allocations: 7.953 kB / 0.5137 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003932/0.2467, allocations: 209.9 kB / 0.5139 GB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.2468, allocations: 97 kB / 0.514 GB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.2469, allocations: 8 kB / 0.514 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.247, allocations: 7.938 kB / 0.514 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.2471, allocations: 4 kB / 0.514 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.2471, allocations: 4 kB / 0.514 GB, free: 6.422 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.2472, allocations: 107.2 kB / 0.5141 GB, free: 6.316 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2472, allocations: 0 / 0.5141 GB, free: 6.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003309/0.2476, allocations: 16 kB / 0.5141 GB, free: 6.301 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0009546/0.2485, allocations: 0.85 MB / 0.515 GB, free: 5.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.2489, allocations: 67.97 kB / 0.515 GB, free: 5.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.2489, allocations: 0 / 0.515 GB, free: 5.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.249, allocations: 35.84 kB / 0.5151 GB, free: 5.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.2494, allocations: 20.03 kB / 0.5151 GB, free: 5.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.2512, allocations: 1.384 MB / 0.5164 GB, free: 3.824 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.2516, allocations: 0.7043 MB / 0.5171 GB, free: 3.094 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.766e-05/0.2517, allocations: 4.859 kB / 0.5171 GB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.683e-05/0.2518, allocations: 31.42 kB / 0.5172 GB, free: 3.055 MB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/0.2518, allocations: 3.938 kB / 0.5172 GB, free: 3.051 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.2763, allocations: 1.745 MB / 0.5189 GB, free: 1.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00036/0.2768, allocations: 213.4 kB / 0.5191 GB, free: 1.082 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.328/2.605, allocations: 0 / 0.5191 GB, free: 1.082 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat