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.001436/0.001436, allocations: 177.3 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.4 MB / 222 MB, free: 13.82 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.0009321/0.0009326, allocations: 90.28 kB / 270.3 MB, free: 13.35 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.07744/0.07744, allocations: 12.59 MB / 331.2 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004298, allocations: 15.44 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09481, allocations: 50.38 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001774/0.09665, allocations: 1.279 MB / 443.8 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007239/0.09739, allocations: 0.5117 MB / 444.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.335e-05/0.09749, allocations: 0 / 444.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.09754, allocations: 7.922 kB / 444.3 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.09768, allocations: 7.938 kB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.09797, allocations: 45.14 kB / 444.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.4e-05/0.09806, allocations: 43.8 kB / 444.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.119e-05/0.09816, allocations: 16.17 kB / 444.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.626e-05/0.09823, allocations: 23.92 kB / 444.4 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.449e-05/0.09829, allocations: 15.86 kB / 444.5 MB, free: 8.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.09831, allocations: 4 kB / 444.5 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.166e-05/0.09833, allocations: 0 / 444.5 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.509e-05/0.09837, allocations: 15.92 kB / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.83e-05/0.09841, allocations: 37.64 kB / 444.5 MB, free: 8.777 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.235e-05/0.09849, allocations: 39.92 kB / 444.5 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.0985, allocations: 0 / 444.5 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.09851, allocations: 0 / 444.5 MB, free: 8.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.09852, allocations: 0 / 444.5 MB, free: 8.738 MB / 282.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.0004511/0.09897, allocations: 375.8 kB / 444.9 MB, free: 8.324 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.09902, allocations: 12.03 kB / 444.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.596e-05/0.09906, allocations: 34.56 kB / 445 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.0991, allocations: 15.83 kB / 445 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.09928, allocations: 198.8 kB / 445.2 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.0993, allocations: 0 / 445.2 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.09932, allocations: 11.94 kB / 445.2 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.09962, allocations: 125.9 kB / 445.3 MB, free: 7.863 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.09964, allocations: 3.984 kB / 445.3 MB, free: 7.859 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.09966, allocations: 4 kB / 445.3 MB, free: 7.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.09967, allocations: 4 kB / 445.3 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.919e-05/0.09976, allocations: 31.92 kB / 445.3 MB, free: 7.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003206/0.1001, allocations: 270.7 kB / 445.6 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.1003, allocations: 164.9 kB / 445.8 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.76e-05/0.1004, allocations: 38.62 kB / 445.8 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.1004, allocations: 4 kB / 445.8 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.585e-05/0.1004, allocations: 38.5 kB / 445.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.1004, allocations: 0 / 445.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.00026/0.1007, allocations: 101.5 kB / 445.9 MB, free: 7.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.1007, allocations: 110.7 kB / 446.1 MB, free: 6.957 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.1008, allocations: 142.3 kB / 446.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1009, allocations: 37.69 kB / 446.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.203e-05/0.1009, allocations: 84.33 kB / 446.3 MB, free: 6.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.1009, allocations: 11.91 kB / 446.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.1009, allocations: 0 / 446.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.02e-05/0.101, allocations: 318.8 kB / 446.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.727e-05/0.101, allocations: 15.94 kB / 446.7 MB, free: 6.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.151e-05/0.1011, allocations: 56.22 kB / 446.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.363e-05/0.1012, allocations: 19.98 kB / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1012, allocations: 0 / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001401/0.1013, allocations: 93.48 kB / 446.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1013, allocations: 4 kB / 446.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1013, allocations: 4 kB / 446.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1014, allocations: 0 / 446.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.037e-05/0.1014, allocations: 11.98 kB / 446.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1015, allocations: 7.953 kB / 446.8 MB, free: 6.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.755e-05/0.1015, allocations: 11.91 kB / 446.9 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.1015, allocations: 128 / 446.9 MB, free: 6.102 MB / 282.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 6.833e-05/0.1016, allocations: 133.8 kB / 447 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/0.1017, allocations: 61.58 kB / 447 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.738e-05/0.1017, allocations: 8.25 kB / 447.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1017, allocations: 4 kB / 447.1 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.1017, allocations: 0 / 447.1 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.1017, allocations: 3.953 kB / 447.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.1019, allocations: 181.6 kB / 447.2 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1019, allocations: 0 / 447.2 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.345e-05/0.1019, allocations: 12 kB / 447.3 MB, free: 5.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.1019, allocations: 7.984 kB / 447.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.102, allocations: 0 / 447.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.102, allocations: 4 kB / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.102, allocations: 0 / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.1021, allocations: 197 kB / 447.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.1022, allocations: 89 kB / 447.5 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.1022, allocations: 4 kB / 447.5 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.1023, allocations: 8 kB / 447.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.1023, allocations: 3.984 kB / 447.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.1023, allocations: 4 kB / 447.6 MB, free: 5.285 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.784e-05/0.1024, allocations: 107.2 kB / 447.7 MB, free: 5.18 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1024, allocations: 0 / 447.7 MB, free: 5.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002015/0.1026, allocations: 8 kB / 447.7 MB, free: 5.172 MB / 282.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.0003955/0.103, allocations: 0.7493 MB / 448.4 MB, free: 4.391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.1031, allocations: 43.92 kB / 448.5 MB, free: 4.348 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1032, allocations: 3.938 kB / 448.5 MB, free: 4.344 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.068e-05/0.1032, allocations: 15.92 kB / 448.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.1036, allocations: 39.7 kB / 448.5 MB, free: 4.293 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007356/0.1043, allocations: 0.566 MB / 449.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.1044, allocations: 0.6928 MB / 449.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.122e-05/0.1045, allocations: 4.188 kB / 449.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.1045, allocations: 23.42 kB / 449.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1045, allocations: 0 / 449.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01168/0.1162, allocations: 1.538 MB / 451.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.1164, allocations: 234.1 kB / 451.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/1.75, allocations: 3.906 kB / 451.6 MB, free: 1.141 MB / 282.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