Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 97.06 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001015, allocations: 179.8 kB / 16.61 MB, free: 6.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08329/0.08329, allocations: 12.6 MB / 283.6 MB, free: 8.715 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006898/0.0006898, allocations: 20 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09703, allocations: 50.38 MB / 394.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002169/0.09925, allocations: 1.197 MB / 396.1 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004223/0.09971, allocations: 131.7 kB / 396.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.06e-05/0.09982, allocations: 0 / 396.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.789e-05/0.09988, allocations: 3.938 kB / 396.2 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.1, allocations: 4 kB / 396.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1003, allocations: 35.84 kB / 396.3 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.843e-05/0.1004, allocations: 27.97 kB / 396.3 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.348e-05/0.1005, allocations: 4 kB / 396.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.328e-05/0.1005, allocations: 11.92 kB / 396.3 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.624e-05/0.1006, allocations: 11.94 kB / 396.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.1006, allocations: 3.938 kB / 396.3 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.081e-05/0.1006, allocations: 0 / 396.3 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.1006, allocations: 7.938 kB / 396.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.697e-05/0.1007, allocations: 37.69 kB / 396.4 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.307e-05/0.1008, allocations: 23.95 kB / 396.4 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1008, allocations: 4 kB / 396.4 MB, free: 1.293 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1008, allocations: 0 / 396.4 MB, free: 1.293 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1008, allocations: 0 / 396.4 MB, free: 1.293 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005036/0.1013, allocations: 355.4 kB / 396.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1013, allocations: 8.031 kB / 396.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.1014, allocations: 11.91 kB / 396.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1017, allocations: 190.7 kB / 396.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1017, allocations: 0 / 396.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.1017, allocations: 15.95 kB / 397 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.102, allocations: 89.03 kB / 397 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.102, allocations: 4 kB / 397 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.102, allocations: 0 / 397 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.102, allocations: 0 / 397 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.457e-05/0.1021, allocations: 23.98 kB / 397.1 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.1025, allocations: 257.7 kB / 397.3 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.908e-05/0.1026, allocations: 49.22 kB / 397.4 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.1026, allocations: 0 / 397.4 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1027, allocations: 38.48 kB / 397.4 MB, free: 88 kB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 2.284e-06/0.1027, allocations: 3.984 kB / 397.4 MB, free: 84 kB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002478/0.1029, allocations: 65.88 kB / 397.5 MB, free: 12 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.921e-05/0.103, allocations: 85.08 kB / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.1032, allocations: 134.1 kB / 397.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1032, allocations: 29.7 kB / 397.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.1033, allocations: 84.14 kB / 397.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.219e-05/0.1033, allocations: 7.891 kB / 397.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/0.1033, allocations: 0 / 397.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1035, allocations: 318.8 kB / 398.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.176e-05/0.1035, allocations: 11.98 kB / 398.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.127e-05/0.1036, allocations: 17.72 kB / 398.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.642e-05/0.1036, allocations: 19.94 kB / 398.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1036, allocations: 0 / 398.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001131/0.1037, allocations: 53.69 kB / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1038, allocations: 8 kB / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1038, allocations: 0 / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.1038, allocations: 0 / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.331e-05/0.1039, allocations: 4 kB / 398.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1039, allocations: 11.92 kB / 398.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.105e-05/0.104, allocations: 11.88 kB / 398.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.104, allocations: 4 kB / 398.3 MB, free: 15.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 0.0001076/0.1041, allocations: 125.6 kB / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.1042, allocations: 49.53 kB / 398.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/0.1042, allocations: 3.875 kB / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1042, allocations: 0 / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.1042, allocations: 4 kB / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1043, allocations: 0 / 398.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.1045, allocations: 165.7 kB / 398.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1045, allocations: 3.953 kB / 398.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.721e-05/0.1045, allocations: 8.031 kB / 398.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1046, allocations: 4 kB / 398.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1046, allocations: 0 / 398.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1046, allocations: 0 / 398.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1046, allocations: 0 / 398.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.1048, allocations: 181.9 kB / 398.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.1049, allocations: 85.09 kB / 398.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.1049, allocations: 4 kB / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.105, allocations: 4 kB / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/0.105, allocations: 0 / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.105, allocations: 0 / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.142e-05/0.1051, allocations: 107.2 kB / 399 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1051, allocations: 0 / 399 MB, free: 14.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.1053, allocations: 8.031 kB / 399 MB, free: 14.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001056/0.1054, allocations: 91.25 kB / 399.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.1056, allocations: 23.98 kB / 399.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1056, allocations: 0 / 399.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.324e-05/0.1056, allocations: 8.062 kB / 399.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.1059, allocations: 31.97 kB / 399.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003557/0.1063, allocations: 149.5 kB / 399.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.1067, allocations: 0.6887 MB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.934e-05/0.1067, allocations: 11.98 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.523e-05/0.1067, allocations: 7.438 kB / 400 MB, free: 13.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1067, allocations: 4 kB / 400 MB, free: 13.24 MB / 302.1 MB Notification: Performance of Templates: time 0.002362/0.1091, allocations: 391.4 kB / 400.4 MB, free: 12.86 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches