Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",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.002205/0.002205, 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.267/2.267, allocations: 205.3 MB / 213.8 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.001149, allocations: 86.3 kB / 261.8 MB, free: 1.688 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.1048/0.1048, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.853e-05, allocations: 7.984 kB / 379 MB, free: 6.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3331, allocations: 50.36 MB / 429.4 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.4807, allocations: 77.08 MB / 0.4946 GB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.4811, allocations: 75.94 kB / 0.4947 GB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004353/0.4854, allocations: 1.211 MB / 0.4959 GB, free: 3.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4855, allocations: 0 / 0.4959 GB, free: 3.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.4855, allocations: 0 / 0.4959 GB, free: 3.859 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003646/0.4859, allocations: 342.5 kB / 0.4962 GB, free: 3.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.486, allocations: 8.031 kB / 0.4962 GB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.486, allocations: 11.91 kB / 0.4962 GB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.4863, allocations: 193.3 kB / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.4863, allocations: 3.938 kB / 0.4964 GB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.4863, allocations: 11.94 kB / 0.4964 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000104/0.4864, allocations: 23.94 kB / 0.4964 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.4867, allocations: 103.3 kB / 0.4965 GB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.4868, allocations: 7.984 kB / 0.4965 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.4868, allocations: 0 / 0.4965 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-06/0.4868, allocations: 0 / 0.4965 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.487, allocations: 142.2 kB / 0.4967 GB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.4872, allocations: 58.67 kB / 0.4967 GB, free: 2.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.749e-05/0.4873, allocations: 36.89 kB / 0.4968 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.4873, allocations: 3.953 kB / 0.4968 GB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.4873, allocations: 34.56 kB / 0.4968 GB, free: 2.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.893e-06/0.4873, allocations: 4 kB / 0.4968 GB, free: 2.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002125/0.4876, allocations: 57.61 kB / 0.4969 GB, free: 2.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.4876, allocations: 63.33 kB / 0.4969 GB, free: 2.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.4878, allocations: 122.6 kB / 0.497 GB, free: 2.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.4878, allocations: 25.7 kB / 0.4971 GB, free: 2.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.4879, allocations: 80.14 kB / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.4879, allocations: 12 kB / 0.4972 GB, free: 2.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.4879, allocations: 0 / 0.4972 GB, free: 2.355 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.488, allocations: 314.8 kB / 0.4975 GB, free: 2.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.4881, allocations: 11.94 kB / 0.4975 GB, free: 2.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.411e-05/0.4881, allocations: 50.88 kB / 0.4975 GB, free: 1.953 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.683e-05/0.4882, allocations: 19.98 kB / 0.4975 GB, free: 1.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4882, allocations: 0 / 0.4975 GB, free: 1.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000166/0.4884, allocations: 77.75 kB / 0.4976 GB, free: 1.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.4884, allocations: 4 kB / 0.4976 GB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.4884, allocations: 11.89 kB / 0.4976 GB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4885, allocations: 0 / 0.4976 GB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.872e-05/0.4885, allocations: 4 kB / 0.4976 GB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4885, allocations: 7.984 kB / 0.4976 GB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.691e-05/0.4886, allocations: 0 / 0.4976 GB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.4886, allocations: 8 kB / 0.4976 GB, free: 1.816 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.696e-05/0.4887, allocations: 108.9 kB / 0.4977 GB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001324/0.4888, allocations: 73.8 kB / 0.4978 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.4889, allocations: 11.86 kB / 0.4978 GB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.4889, allocations: 8.625 kB / 0.4978 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.489, allocations: 4.188 kB / 0.4978 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.489, allocations: 0 / 0.4978 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.489, allocations: 3.938 kB / 0.4978 GB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.4891, allocations: 142.2 kB / 0.498 GB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.4891, allocations: 7.984 kB / 0.498 GB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.83e-05/0.4892, allocations: 3.984 kB / 0.498 GB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4892, allocations: 0 / 0.498 GB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.4892, allocations: 7.953 kB / 0.498 GB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.4892, allocations: 3.938 kB / 0.498 GB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4892, allocations: 4 kB / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001573/0.4894, allocations: 93.17 kB / 0.4981 GB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.079e-05/0.4895, allocations: 89 kB / 0.4982 GB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.4895, allocations: 0 / 0.4982 GB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.789e-05/0.4895, allocations: 7.891 kB / 0.4982 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-06/0.4896, allocations: 0 / 0.4982 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.4896, allocations: 12 kB / 0.4982 GB, free: 1.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.376e-05/0.4897, allocations: 97.8 kB / 0.4983 GB, free: 1.062 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4897, allocations: 0 / 0.4983 GB, free: 1.062 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002834/0.49, allocations: 8 kB / 0.4983 GB, free: 1.055 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005506/0.4906, allocations: 0.6436 MB / 0.4989 GB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.4907, allocations: 40 kB / 0.499 GB, free: 352 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.4907, allocations: 0 / 0.499 GB, free: 352 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.4908, allocations: 0 / 0.499 GB, free: 352 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.4911, allocations: 35.36 kB / 0.499 GB, free: 320 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005017/0.4916, allocations: 150 kB / 0.4991 GB, free: 132 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.492, allocations: 0.6963 MB / 0.4998 GB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.59e-05/0.492, allocations: 4.5 kB / 0.4998 GB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.983e-05/0.4921, allocations: 15.44 kB / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.183e-06/0.4921, allocations: 0 / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.5264, allocations: 1.132 MB / 0.501 GB, free: 14.26 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003858/0.5269, allocations: 165.2 kB / 0.5011 GB, free: 14.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/2.957, allocations: 0 / 0.5011 GB, free: 14.07 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat