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.001448/0.001448, allocations: 177.4 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.65/1.65, allocations: 205.4 MB / 222 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008501/0.0008502, allocations: 90.3 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08181/0.08181, allocations: 12.59 MB / 331.2 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004365/0.0004367, allocations: 13.38 kB / 392.1 MB, free: 54.84 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09839, allocations: 50.38 MB / 442.5 MB, free: 10.87 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.001199/0.09965, allocations: 0.5608 MB / 443.1 MB, free: 10.3 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0003439/0.1, allocations: 115.7 kB / 443.2 MB, free: 10.19 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1001, allocations: 4 kB / 443.2 MB, free: 10.19 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 3.311e-05/0.1002, allocations: 4 kB / 443.2 MB, free: 10.18 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.1003, allocations: 15.86 kB / 443.2 MB, free: 10.17 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.1006, allocations: 31.91 kB / 443.2 MB, free: 10.14 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 9.589e-05/0.1007, allocations: 31.92 kB / 443.3 MB, free: 10.11 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.1008, allocations: 19.98 kB / 443.3 MB, free: 10.09 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 3.166e-05/0.1009, allocations: 15.92 kB / 443.3 MB, free: 10.07 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 3.786e-05/0.1009, allocations: 11.94 kB / 443.3 MB, free: 10.06 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.1009, allocations: 3.938 kB / 443.3 MB, free: 10.05 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.152e-05/0.101, allocations: 0 / 443.3 MB, free: 10.05 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.101, allocations: 23.91 kB / 443.3 MB, free: 10.03 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 3.257e-05/0.1011, allocations: 33.64 kB / 443.4 MB, free: 9.992 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 8.18e-05/0.1011, allocations: 27.94 kB / 443.4 MB, free: 9.965 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1012, allocations: 0 / 443.4 MB, free: 9.965 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1012, allocations: 0 / 443.4 MB, free: 9.965 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1012, allocations: 0 / 443.4 MB, free: 9.965 MB / 282.8 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.0003682/0.1016, allocations: 363.9 kB / 443.8 MB, free: 9.562 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1016, allocations: 8.031 kB / 443.8 MB, free: 9.555 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.1017, allocations: 38.56 kB / 443.8 MB, free: 9.508 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.47e-05/0.1017, allocations: 11.91 kB / 443.8 MB, free: 9.496 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.1019, allocations: 182.9 kB / 444 MB, free: 9.277 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1019, allocations: 15.89 kB / 444 MB, free: 9.262 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.1019, allocations: 3.984 kB / 444 MB, free: 9.258 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.1022, allocations: 131.2 kB / 444.1 MB, free: 9.117 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1022, allocations: 0 / 444.1 MB, free: 9.117 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.1022, allocations: 0 / 444.1 MB, free: 9.117 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1022, allocations: 4 kB / 444.1 MB, free: 9.113 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.217e-05/0.1023, allocations: 19.98 kB / 444.2 MB, free: 9.094 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001218/0.1024, allocations: 177.5 kB / 444.3 MB, free: 8.871 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.1025, allocations: 66.66 kB / 444.4 MB, free: 8.797 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.264e-05/0.1026, allocations: 36.89 kB / 444.4 MB, free: 8.758 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.1026, allocations: 0 / 444.4 MB, free: 8.758 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.1026, allocations: 38.56 kB / 444.5 MB, free: 8.711 MB / 282.8 MB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.1026, allocations: 0 / 444.5 MB, free: 8.711 MB / 282.8 MB Notification: Performance of matching and sorting (n=8): time 0.0001849/0.1028, allocations: 81.53 kB / 444.5 MB, free: 8.625 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.1029, allocations: 59.41 kB / 444.6 MB, free: 8.555 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.05e-05/0.103, allocations: 133.8 kB / 444.7 MB, free: 8.414 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 9.026e-06/0.103, allocations: 25.7 kB / 444.8 MB, free: 8.383 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.103, allocations: 92.12 kB / 444.9 MB, free: 8.289 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.133e-05/0.103, allocations: 4 kB / 444.9 MB, free: 8.285 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-06/0.103, allocations: 4 kB / 444.9 MB, free: 8.281 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/0.1031, allocations: 318.8 kB / 445.2 MB, free: 7.961 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.852e-05/0.1031, allocations: 8 kB / 445.2 MB, free: 7.953 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.853e-05/0.1032, allocations: 62.73 kB / 445.2 MB, free: 7.867 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.1032, allocations: 16 kB / 445.3 MB, free: 7.852 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1032, allocations: 4 kB / 445.3 MB, free: 7.848 MB / 282.8 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001114/0.1033, allocations: 97.55 kB / 445.4 MB, free: 7.746 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1034, allocations: 4 kB / 445.4 MB, free: 7.742 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1034, allocations: 4 kB / 445.4 MB, free: 7.738 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1034, allocations: 0 / 445.4 MB, free: 7.738 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.978e-05/0.1034, allocations: 11.92 kB / 445.4 MB, free: 7.727 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.1034, allocations: 4 kB / 445.4 MB, free: 7.723 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.932e-05/0.1035, allocations: 0 / 445.4 MB, free: 7.723 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.1035, allocations: 4 kB / 445.4 MB, free: 7.719 MB / 282.8 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 () * Number of clocked states: 1 (unitDelay1.u) * 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 7.461e-05/0.1036, allocations: 129.6 kB / 445.5 MB, free: 7.582 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.056e-05/0.1036, allocations: 77.92 kB / 445.6 MB, free: 7.5 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.1037, allocations: 16.36 kB / 445.6 MB, free: 7.48 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.1037, allocations: 0 / 445.6 MB, free: 7.48 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1037, allocations: 0 / 445.6 MB, free: 7.48 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1037, allocations: 0 / 445.6 MB, free: 7.48 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.819e-05/0.1038, allocations: 165.7 kB / 445.8 MB, free: 7.27 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1038, allocations: 4 kB / 445.8 MB, free: 7.266 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.297e-05/0.1038, allocations: 3.938 kB / 445.8 MB, free: 7.262 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1038, allocations: 3.953 kB / 445.8 MB, free: 7.258 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-06/0.1038, allocations: 0 / 445.8 MB, free: 7.258 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1038, allocations: 7.984 kB / 445.8 MB, free: 7.25 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1038, allocations: 8 kB / 445.8 MB, free: 7.242 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.907e-05/0.1039, allocations: 97.09 kB / 445.9 MB, free: 7.129 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.104, allocations: 92.94 kB / 446 MB, free: 7.02 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.104, allocations: 11.95 kB / 446 MB, free: 7.008 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.54e-05/0.104, allocations: 0 / 446 MB, free: 7.008 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-06/0.104, allocations: 0 / 446 MB, free: 7.008 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.104, allocations: 0 / 446 MB, free: 7.008 MB / 282.8 MB Notification: Performance of sorting global known variables: time 4.093e-05/0.1041, allocations: 107.3 kB / 446.1 MB, free: 6.902 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1041, allocations: 0 / 446.1 MB, free: 6.902 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002078/0.1043, allocations: 8 kB / 446.1 MB, free: 6.895 MB / 282.8 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 () * Number of clocked states: 1 (unitDelay1.u) * 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.0002922/0.1046, allocations: 0.6516 MB / 446.8 MB, free: 6.211 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.1047, allocations: 48.11 kB / 446.8 MB, free: 6.164 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1047, allocations: 3.938 kB / 446.8 MB, free: 6.16 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 1.703e-06/0.1047, allocations: 3.938 kB / 446.8 MB, free: 6.156 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.105, allocations: 43.72 kB / 446.8 MB, free: 6.117 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005178/0.1056, allocations: 0.5004 MB / 447.4 MB, free: 5.547 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.1057, allocations: 0.6965 MB / 448 MB, free: 4.824 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 2.424e-05/0.1057, allocations: 12.03 kB / 448.1 MB, free: 4.812 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.1058, allocations: 15.44 kB / 448.1 MB, free: 4.797 MB / 282.8 MB Notification: Performance of SimCode: time 1.81e-07/0.1058, allocations: 0 / 448.1 MB, free: 4.797 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01001/0.1158, allocations: 1.47 MB / 449.5 MB, free: 3.34 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/0.116, allocations: 206.9 kB / 449.7 MB, free: 3.105 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.491/1.607, allocations: 7.844 kB / 449.8 MB, free: 3.098 MB / 282.8 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