Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 181 kB / 8.049 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.149/2.149, allocations: 205.3 MB / 213.8 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.001084/0.001084, allocations: 94.56 kB / 261.8 MB, free: 1.676 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.1358/0.1358, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.286e-05/2.3e-05, allocations: 4 kB / 378.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3157, allocations: 50.38 MB / 429.3 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.45, allocations: 76.98 MB / 0.4944 GB, free: 5.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.4504, allocations: 71.95 kB / 0.4945 GB, free: 5.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004074/0.4545, allocations: 1.114 MB / 0.4956 GB, free: 4.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4545, allocations: 0 / 0.4956 GB, free: 4.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.4545, allocations: 4 kB / 0.4956 GB, free: 4.055 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004415/0.455, allocations: 354.4 kB / 0.4959 GB, free: 3.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.455, allocations: 8.031 kB / 0.4959 GB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.4551, allocations: 7.906 kB / 0.4959 GB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.4553, allocations: 181 kB / 0.4961 GB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.4554, allocations: 7.938 kB / 0.4961 GB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.4554, allocations: 3.953 kB / 0.4961 GB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.98e-05/0.4555, allocations: 12 kB / 0.4961 GB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.4558, allocations: 101 kB / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.4558, allocations: 0 / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.4558, allocations: 0 / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.4558, allocations: 4 kB / 0.4962 GB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004001/0.4562, allocations: 250.3 kB / 0.4965 GB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.4565, allocations: 130.3 kB / 0.4966 GB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.43e-05/0.4565, allocations: 21.78 kB / 0.4966 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.4566, allocations: 0 / 0.4966 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.4566, allocations: 38.56 kB / 0.4967 GB, free: 2.766 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.472e-06/0.4566, allocations: 0 / 0.4967 GB, free: 2.766 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000202/0.4568, allocations: 61.52 kB / 0.4967 GB, free: 2.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.4569, allocations: 77.11 kB / 0.4968 GB, free: 2.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.4571, allocations: 118.6 kB / 0.4969 GB, free: 2.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.4571, allocations: 25.7 kB / 0.4969 GB, free: 2.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.4572, allocations: 92.05 kB / 0.497 GB, free: 2.355 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.505e-05/0.4572, allocations: 11.95 kB / 0.497 GB, free: 2.344 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.4572, allocations: 0 / 0.497 GB, free: 2.344 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4574, allocations: 318.8 kB / 0.4973 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.573e-05/0.4574, allocations: 0 / 0.4973 GB, free: 2.023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.135e-05/0.4574, allocations: 31.38 kB / 0.4974 GB, free: 1.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.4575, allocations: 8 kB / 0.4974 GB, free: 1.973 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4575, allocations: 3.984 kB / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001186/0.4576, allocations: 53.59 kB / 0.4974 GB, free: 1.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4577, allocations: 4 kB / 0.4974 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.4577, allocations: 4 kB / 0.4974 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.4577, allocations: 0 / 0.4974 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.4578, allocations: 11.98 kB / 0.4974 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.4578, allocations: 0 / 0.4974 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.574e-05/0.4579, allocations: 8.125 kB / 0.4975 GB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.4579, allocations: 4 kB / 0.4975 GB, free: 1.879 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.691e-05/0.458, allocations: 101 kB / 0.4976 GB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.868e-05/0.4581, allocations: 57.48 kB / 0.4976 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/0.4582, allocations: 8.344 kB / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.4582, allocations: 0 / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4582, allocations: 0 / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4582, allocations: 0 / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.4584, allocations: 150.2 kB / 0.4978 GB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.4584, allocations: 0 / 0.4978 GB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.448e-05/0.4585, allocations: 11.98 kB / 0.4978 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.383e-05/0.4586, allocations: 4 kB / 0.4978 GB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.4586, allocations: 3.953 kB / 0.4978 GB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.4586, allocations: 4 kB / 0.4978 GB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4586, allocations: 3.938 kB / 0.4978 GB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.4588, allocations: 170 kB / 0.4979 GB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.537e-05/0.4589, allocations: 89 kB / 0.498 GB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.4589, allocations: 7.953 kB / 0.498 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.271e-05/0.459, allocations: 0 / 0.498 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/0.4591, allocations: 4 kB / 0.498 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.4591, allocations: 4 kB / 0.498 GB, free: 1.176 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.267e-05/0.4592, allocations: 96.95 kB / 0.4981 GB, free: 1.082 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4592, allocations: 0 / 0.4981 GB, free: 1.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003061/0.4595, allocations: 8 kB / 0.4981 GB, free: 1.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000123/0.4597, allocations: 99.23 kB / 0.4982 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.4598, allocations: 15.94 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4598, allocations: 3.938 kB / 0.4983 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.964e-05/0.4598, allocations: 8 kB / 0.4983 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.4602, allocations: 19.41 kB / 0.4983 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.4605, allocations: 93.16 kB / 0.4984 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.4608, allocations: 0.6924 MB / 0.4991 GB, free: 88 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.686e-05/0.4609, allocations: 15.92 kB / 0.4991 GB, free: 72 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.4609, allocations: 11.44 kB / 0.4991 GB, free: 60 kB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4609, allocations: 0 / 0.4991 GB, free: 60 kB / 346.7 MB Notification: Performance of Templates: time 0.003131/0.4641, allocations: 413 kB / 0.4995 GB, free: 15.65 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches