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.001389/0.001389, allocations: 171.6 kB / 16.15 MB, free: 5.656 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.46/1.46, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0008459/0.0008458, allocations: 89.48 kB / 270.7 MB, free: 8.242 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.0861/0.0861, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004083, allocations: 12 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00189/0.1029, allocations: 1.293 MB / 444.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008035/0.1037, allocations: 0.5231 MB / 445 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1038, allocations: 0 / 445 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.316e-05/0.1039, allocations: 3.938 kB / 445 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.1041, allocations: 7.938 kB / 445 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.1044, allocations: 43.89 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.1045, allocations: 43.86 kB / 445.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.1047, allocations: 24.16 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.996e-05/0.1048, allocations: 15.88 kB / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.697e-05/0.1048, allocations: 19.86 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.1049, allocations: 4 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.338e-05/0.1049, allocations: 3.938 kB / 445.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.7e-05/0.105, allocations: 15.92 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.105, allocations: 57.48 kB / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.1052, allocations: 52.02 kB / 445.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1052, allocations: 4 kB / 445.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1052, allocations: 4 kB / 445.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.892e-06/0.1052, allocations: 0 / 445.3 MB, free: 13.18 MB / 298.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.0004599/0.1057, allocations: 367.2 kB / 445.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.1057, allocations: 12.03 kB / 445.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.489e-05/0.1058, allocations: 38.73 kB / 445.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.1058, allocations: 8.844 kB / 445.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.106, allocations: 200 kB / 445.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.106, allocations: 4.359 kB / 445.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.106, allocations: 8.375 kB / 445.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.1063, allocations: 137.8 kB / 446 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.1063, allocations: 0 / 446 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1063, allocations: 8 kB / 446 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1064, allocations: 0 / 446 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.926e-05/0.1064, allocations: 31.91 kB / 446.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003291/0.1068, allocations: 278.6 kB / 446.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.107, allocations: 164.8 kB / 446.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.504e-05/0.1071, allocations: 34.7 kB / 446.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.1071, allocations: 7.984 kB / 446.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.1071, allocations: 42.5 kB / 446.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.1071, allocations: 0 / 446.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002728/0.1074, allocations: 97.5 kB / 446.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.1075, allocations: 115 kB / 446.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.1076, allocations: 138.1 kB / 446.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.1076, allocations: 29.7 kB / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.909e-05/0.1076, allocations: 92.12 kB / 447 MB, free: 11.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.1076, allocations: 7.844 kB / 447 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/0.1076, allocations: 4 kB / 447 MB, free: 11.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.1077, allocations: 318.8 kB / 447.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.744e-05/0.1077, allocations: 19.98 kB / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.788e-05/0.1078, allocations: 48.28 kB / 447.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.1079, allocations: 64.22 kB / 447.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1079, allocations: 0 / 447.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001457/0.1081, allocations: 89.55 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1081, allocations: 11.98 kB / 447.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1081, allocations: 128 / 447.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1081, allocations: 8 kB / 447.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.94e-05/0.1082, allocations: 8 kB / 447.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.1082, allocations: 3.938 kB / 447.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.862e-05/0.1083, allocations: 11.89 kB / 447.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.1083, allocations: 7.938 kB / 447.6 MB, free: 10.47 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.698e-05/0.1084, allocations: 133.9 kB / 447.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/0.1084, allocations: 53.58 kB / 447.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.1085, allocations: 12.25 kB / 447.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1085, allocations: 4 kB / 447.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1085, allocations: 4 kB / 447.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1085, allocations: 0 / 447.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.1086, allocations: 177.6 kB / 448 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1087, allocations: 0 / 448 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.612e-05/0.1087, allocations: 11.98 kB / 448 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1087, allocations: 0 / 448 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.1087, allocations: 8 kB / 448 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1088, allocations: 0 / 448 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1088, allocations: 3.938 kB / 448 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001543/0.1089, allocations: 193.1 kB / 448.2 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.109, allocations: 93 kB / 448.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.109, allocations: 0 / 448.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.1091, allocations: 11.98 kB / 448.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-05/0.1091, allocations: 4 kB / 448.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.1091, allocations: 0 / 448.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.067e-05/0.1092, allocations: 107.2 kB / 448.4 MB, free: 9.562 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1092, allocations: 4 kB / 448.4 MB, free: 9.559 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002184/0.1094, allocations: 11.94 kB / 448.4 MB, free: 9.547 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000455/0.1099, allocations: 0.7493 MB / 449.2 MB, free: 8.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001535/0.11, allocations: 48.16 kB / 449.2 MB, free: 8.719 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1101, allocations: 4 kB / 449.2 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.116e-05/0.1101, allocations: 11.94 kB / 449.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004066/0.1105, allocations: 33.42 kB / 449.3 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.1117, allocations: 1.48 MB / 450.8 MB, free: 7.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.1119, allocations: 0.6965 MB / 451.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.298e-05/0.112, allocations: 7.984 kB / 451.5 MB, free: 6.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.112, allocations: 19.44 kB / 451.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.112, allocations: 0 / 451.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.1243, allocations: 1.533 MB / 453 MB, free: 4.789 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.1245, allocations: 254.9 kB / 453.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/1.775, allocations: 0 / 453.3 MB, free: 4.523 MB / 298.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