Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00226/0.002259, allocations: 181.8 kB / 8.409 MB, free: 0.668 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.181/2.181, allocations: 205.3 MB / 214.1 MB, free: 1.742 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.001097/0.001097, allocations: 88.11 kB / 262.2 MB, free: 1.684 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.1034/0.1034, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.316e-05/3.336e-05, allocations: 7.984 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3067, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.4386, allocations: 77.09 MB / 0.4945 GB, free: 5.219 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.4389, allocations: 79.94 kB / 0.4946 GB, free: 5.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004435/0.4434, allocations: 1.2 MB / 0.4957 GB, free: 3.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4434, allocations: 7.938 kB / 0.4958 GB, free: 3.934 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.4434, allocations: 0 / 0.4958 GB, free: 3.934 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.0003929/0.4438, allocations: 342.4 kB / 0.4961 GB, free: 3.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4439, allocations: 12.03 kB / 0.4961 GB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.696e-05/0.444, allocations: 11.91 kB / 0.4961 GB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.4442, allocations: 178.9 kB / 0.4963 GB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.4442, allocations: 0 / 0.4963 GB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.4443, allocations: 7.953 kB / 0.4963 GB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001094/0.4444, allocations: 23.98 kB / 0.4963 GB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.4447, allocations: 111.3 kB / 0.4964 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.4447, allocations: 0 / 0.4964 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.4447, allocations: 3.984 kB / 0.4964 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4447, allocations: 4 kB / 0.4964 GB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.4449, allocations: 138.2 kB / 0.4965 GB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.4451, allocations: 62.67 kB / 0.4966 GB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.873e-05/0.4452, allocations: 36.89 kB / 0.4966 GB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.4452, allocations: 3.953 kB / 0.4966 GB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.4453, allocations: 38.56 kB / 0.4967 GB, free: 2.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.4453, allocations: 0 / 0.4967 GB, free: 2.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001882/0.4455, allocations: 57.61 kB / 0.4967 GB, free: 2.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.4455, allocations: 59.55 kB / 0.4968 GB, free: 2.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.4457, allocations: 122.3 kB / 0.4969 GB, free: 2.566 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.4457, allocations: 33.64 kB / 0.4969 GB, free: 2.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.739e-05/0.4458, allocations: 150.6 kB / 0.4971 GB, free: 2.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.4458, allocations: 11.98 kB / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-06/0.4458, allocations: 0 / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.446, allocations: 314.8 kB / 0.4974 GB, free: 2.051 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.579e-05/0.446, allocations: 11.94 kB / 0.4974 GB, free: 2.039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.069e-05/0.4461, allocations: 58.81 kB / 0.4975 GB, free: 1.957 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.159e-05/0.4462, allocations: 12 kB / 0.4975 GB, free: 1.945 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4462, allocations: 0 / 0.4975 GB, free: 1.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001648/0.4463, allocations: 77.55 kB / 0.4976 GB, free: 1.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4464, allocations: 8 kB / 0.4976 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.4464, allocations: 3.953 kB / 0.4976 GB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4464, allocations: 4 kB / 0.4976 GB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.865e-05/0.4465, allocations: 7.938 kB / 0.4976 GB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.4465, allocations: 0 / 0.4976 GB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.686e-05/0.4465, allocations: 4 kB / 0.4976 GB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.4465, allocations: 4 kB / 0.4976 GB, free: 1.832 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 9.561e-05/0.4466, allocations: 118.7 kB / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.4468, allocations: 57.59 kB / 0.4977 GB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.909e-05/0.4468, allocations: 12.62 kB / 0.4978 GB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4469, allocations: 3.953 kB / 0.4978 GB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.4469, allocations: 3.984 kB / 0.4978 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4469, allocations: 0 / 0.4978 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.447, allocations: 146.2 kB / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.447, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.522e-05/0.447, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.465e-05/0.4471, allocations: 8 kB / 0.4979 GB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4471, allocations: 3.984 kB / 0.4979 GB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4471, allocations: 0 / 0.4979 GB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4471, allocations: 0 / 0.4979 GB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.4473, allocations: 92.92 kB / 0.498 GB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.459e-05/0.4474, allocations: 93 kB / 0.4981 GB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.4474, allocations: 7.984 kB / 0.4981 GB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.509e-05/0.4474, allocations: 0 / 0.4981 GB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-06/0.4475, allocations: 4 kB / 0.4981 GB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.4475, allocations: 0 / 0.4981 GB, free: 1.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.993e-05/0.4476, allocations: 100.9 kB / 0.4982 GB, free: 1.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.4476, allocations: 0 / 0.4982 GB, free: 1.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002863/0.4479, allocations: 15.94 kB / 0.4982 GB, free: 1.09 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.0001146/0.448, allocations: 91.25 kB / 0.4983 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001418/0.4482, allocations: 39.92 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4482, allocations: 0.5 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.92e-07/0.4482, allocations: 4 kB / 0.4983 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.4485, allocations: 39.52 kB / 0.4984 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003358/0.4489, allocations: 138 kB / 0.4985 GB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.4492, allocations: 0.6963 MB / 0.4992 GB, free: 28 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.4493, allocations: 11.44 kB / 0.4992 GB, free: 16 kB / 346.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4493, allocations: 0 / 0.4992 GB, free: 16 kB / 346.7 MB Notification: Performance of Templates: time 0.002849/0.4522, allocations: 0.7626 MB / 0.5 GB, free: 15.26 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches