Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.002887/0.002887, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001122/0.001122, allocations: 100.3 kB / 261.8 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1062/0.1062, allocations: 12.59 MB / 322.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.341e-05/2.349e-05, allocations: 4 kB / 379 MB, free: 75.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09273, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4639/0.5567, allocations: 77.79 MB / 0.4953 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004097/0.5572, allocations: 78.36 kB / 0.4954 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009208/0.5665, allocations: 1.489 MB / 0.4969 GB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.5665, allocations: 0 / 0.4969 GB, free: 11.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.5666, allocations: 7.688 kB / 0.4969 GB, free: 11.33 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005404/0.5671, allocations: 353.4 kB / 0.4972 GB, free: 10.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.5672, allocations: 15.34 kB / 0.4972 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.5673, allocations: 15.34 kB / 0.4972 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.5676, allocations: 202.1 kB / 0.4974 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.5676, allocations: 0 / 0.4974 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.5677, allocations: 3.906 kB / 0.4974 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001525/0.5678, allocations: 15.16 kB / 0.4974 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.5682, allocations: 116.2 kB / 0.4975 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.5683, allocations: 3.938 kB / 0.4975 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.5683, allocations: 2.859 kB / 0.4976 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.5684, allocations: 0 / 0.4976 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.569, allocations: 335.8 kB / 0.4979 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.5693, allocations: 154.8 kB / 0.498 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.925e-05/0.5694, allocations: 26.23 kB / 0.498 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.5695, allocations: 3.875 kB / 0.498 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.5695, allocations: 37.38 kB / 0.4981 GB, free: 10.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 3.587e-06/0.5695, allocations: 0 / 0.4981 GB, free: 10.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003223/0.5699, allocations: 68.7 kB / 0.4981 GB, free: 10.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.57, allocations: 109.2 kB / 0.4983 GB, free: 9.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.5702, allocations: 120.8 kB / 0.4984 GB, free: 9.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.5702, allocations: 25.7 kB / 0.4984 GB, free: 9.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.5703, allocations: 91.61 kB / 0.4985 GB, free: 9.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.5703, allocations: 13.92 kB / 0.4985 GB, free: 9.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.5704, allocations: 0 / 0.4985 GB, free: 9.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.783e-05/0.5705, allocations: 324.7 kB / 0.4988 GB, free: 9.398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.937e-05/0.5705, allocations: 3.719 kB / 0.4988 GB, free: 9.398 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.5706, allocations: 44.44 kB / 0.4988 GB, free: 9.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.733e-05/0.5707, allocations: 18.39 kB / 0.4989 GB, free: 9.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5708, allocations: 3.938 kB / 0.4989 GB, free: 9.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002379/0.571, allocations: 66.08 kB / 0.4989 GB, free: 9.309 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.5711, allocations: 7.469 kB / 0.4989 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.5711, allocations: 3.938 kB / 0.4989 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.5711, allocations: 3.719 kB / 0.4989 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.5714, allocations: 10.27 kB / 0.499 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.5714, allocations: 8.062 kB / 0.499 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.5715, allocations: 10.77 kB / 0.499 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.5716, allocations: 7.688 kB / 0.499 GB, free: 9.293 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001221/0.5717, allocations: 110.8 kB / 0.4991 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002882/0.572, allocations: 67.59 kB / 0.4992 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-05/0.5721, allocations: 7.75 kB / 0.4992 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.984e-05/0.5722, allocations: 11.38 kB / 0.4992 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.5723, allocations: 2.672 kB / 0.4992 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.5723, allocations: 4.062 kB / 0.4992 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.5723, allocations: 0 / 0.4992 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003952/0.5728, allocations: 159.7 kB / 0.4993 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.5728, allocations: 0 / 0.4993 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.573, allocations: 14.09 kB / 0.4993 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.308e-06/0.573, allocations: 0 / 0.4993 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.573, allocations: 2.484 kB / 0.4993 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.5731, allocations: 3.781 kB / 0.4994 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.5731, allocations: 4 kB / 0.4994 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.5734, allocations: 268.9 kB / 0.4996 GB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.5735, allocations: 93.92 kB / 0.4997 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.5736, allocations: 7.906 kB / 0.4997 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.5738, allocations: 0 / 0.4997 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.5739, allocations: 14.17 kB / 0.4997 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.5739, allocations: 0 / 0.4997 GB, free: 8.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001145/0.5741, allocations: 104.2 kB / 0.4998 GB, free: 8.527 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.5741, allocations: 0 / 0.4998 GB, free: 8.527 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006343/0.5747, allocations: 10.64 kB / 0.4998 GB, free: 8.527 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0007484/0.5755, allocations: 0.954 MB / 0.5008 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002062/0.5758, allocations: 29.42 kB / 0.5008 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5758, allocations: 0 / 0.5008 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.851e-05/0.5758, allocations: 7.812 kB / 0.5008 GB, free: 7.602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006183/0.5765, allocations: 22.58 kB / 0.5008 GB, free: 7.598 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009737/0.5775, allocations: 153.3 kB / 0.501 GB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.5778, allocations: 0.7014 MB / 0.5017 GB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.124e-05/0.5779, allocations: 7.188 kB / 0.5017 GB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.07e-05/0.578, allocations: 22.19 kB / 0.5017 GB, free: 6.746 MB / 330.7 MB Notification: Performance of SimCode: time 4.318e-06/0.578, allocations: 0 / 0.5017 GB, free: 6.746 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/0.6164, allocations: 1.174 MB / 0.5028 GB, free: 6.648 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002515/0.6168, allocations: 177.1 kB / 0.503 GB, free: 6.461 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/3.134, allocations: 4 kB / 0.503 GB, free: 6.457 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat