Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002335/0.002335, allocations: 105.6 kB / 16.31 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002503/0.002503, allocations: 186.4 kB / 17.24 MB, free: 5.922 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.8/1.8, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08348/0.08348, allocations: 12.59 MB / 283.1 MB, free: 15.48 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.002149/0.002149, allocations: 83.88 kB / 343.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3043, allocations: 49.38 MB / 392.9 MB, free: 49.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.003355/0.3077, allocations: 1.874 MB / 394.8 MB, free: 47.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3093, allocations: 1.044 MB / 395.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3094, allocations: 6.688 kB / 395.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000328/0.3098, allocations: 66.67 kB / 395.9 MB, free: 47.18 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.31, allocations: 90.36 kB / 396 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006459/0.3107, allocations: 228.8 kB / 396.2 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.311, allocations: 167.4 kB / 396.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.3111, allocations: 27.67 kB / 396.4 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.3112, allocations: 71.73 kB / 396.4 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.3114, allocations: 77.16 kB / 396.5 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.3114, allocations: 11.97 kB / 396.5 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.3116, allocations: 63.94 kB / 396.6 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.3117, allocations: 49.94 kB / 396.6 MB, free: 46.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.3118, allocations: 79.05 kB / 396.7 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.3122, allocations: 231.5 kB / 396.9 MB, free: 46.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.3122, allocations: 0 / 396.9 MB, free: 46.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3123, allocations: 0 / 396.9 MB, free: 46.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3123, allocations: 1.062 kB / 396.9 MB, free: 46.63 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006768/0.3129, allocations: 0.5308 MB / 397.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.313, allocations: 14 kB / 397.5 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.3131, allocations: 22.78 kB / 397.5 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.3134, allocations: 282.3 kB / 397.8 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3134, allocations: 7.688 kB / 397.8 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.3134, allocations: 8.375 kB / 397.8 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.3137, allocations: 167.2 kB / 398 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3138, allocations: 0 / 398 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.3138, allocations: 5.406 kB / 398 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3138, allocations: 0.9062 kB / 398 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.3139, allocations: 38.56 kB / 398 MB, free: 45.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.3144, allocations: 380.3 kB / 398.4 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.3146, allocations: 115.9 kB / 398.5 MB, free: 45.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.363e-05/0.3147, allocations: 47.31 kB / 398.5 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3147, allocations: 1 kB / 398.5 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.315, allocations: 80.97 kB / 398.6 MB, free: 45.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.315, allocations: 1.281 kB / 398.6 MB, free: 45.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003745/0.3154, allocations: 155 kB / 398.8 MB, free: 44.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.3154, allocations: 164.4 kB / 398.9 MB, free: 44.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.3158, allocations: 322.5 kB / 399.2 MB, free: 44.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.3158, allocations: 34.86 kB / 399.3 MB, free: 44.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.185e-05/0.3159, allocations: 126.7 kB / 399.4 MB, free: 44.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.3159, allocations: 22.92 kB / 399.4 MB, free: 44.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.3159, allocations: 28.53 kB / 399.5 MB, free: 44.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.12e-05/0.316, allocations: 341.2 kB / 399.8 MB, free: 44.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.665e-05/0.3161, allocations: 24.08 kB / 399.8 MB, free: 44.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.477e-05/0.3162, allocations: 88.47 kB / 399.9 MB, free: 43.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3163, allocations: 84.47 kB / 400 MB, free: 43.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3164, allocations: 0 / 400 MB, free: 43.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002217/0.3166, allocations: 123.8 kB / 400.1 MB, free: 43.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3166, allocations: 5.75 kB / 400.1 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3166, allocations: 5.25 kB / 400.1 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3166, allocations: 6.531 kB / 400.1 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.3168, allocations: 18.61 kB / 400.1 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3168, allocations: 6.031 kB / 400.1 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.276e-05/0.3168, allocations: 11.41 kB / 400.2 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.3169, allocations: 8.234 kB / 400.2 MB, free: 43.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.317, allocations: 148.2 kB / 400.3 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.3171, allocations: 68.84 kB / 400.4 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.409e-05/0.3171, allocations: 23.84 kB / 400.4 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3171, allocations: 5.312 kB / 400.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3172, allocations: 5.203 kB / 400.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3172, allocations: 5.062 kB / 400.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.3173, allocations: 237.8 kB / 400.6 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3174, allocations: 0 / 400.6 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.3174, allocations: 12.53 kB / 400.7 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.247e-06/0.3174, allocations: 6.297 kB / 400.7 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3175, allocations: 1.188 kB / 400.7 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3175, allocations: 1.219 kB / 400.7 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3175, allocations: 1.156 kB / 400.7 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.3177, allocations: 173 kB / 400.8 MB, free: 43.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.3178, allocations: 108.6 kB / 400.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.3178, allocations: 10.02 kB / 400.9 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.06e-05/0.3179, allocations: 3.375 kB / 401 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.318, allocations: 8.266 kB / 401 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.318, allocations: 15.38 kB / 401 MB, free: 43.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.3182, allocations: 241.7 kB / 401.2 MB, free: 42.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3182, allocations: 96 / 401.2 MB, free: 42.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.3185, allocations: 37.19 kB / 401.2 MB, free: 42.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009502/0.3194, allocations: 432.7 kB / 401.7 MB, free: 42.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.3197, allocations: 77.58 kB / 401.7 MB, free: 42.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3197, allocations: 4.25 kB / 401.8 MB, free: 42.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.108e-05/0.3198, allocations: 37.42 kB / 401.8 MB, free: 42.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.3202, allocations: 65.66 kB / 401.9 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005504/0.3207, allocations: 370.4 kB / 402.2 MB, free: 42.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.3209, allocations: 0.7437 MB / 403 MB, free: 41.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.193e-05/0.321, allocations: 21.86 kB / 403 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.3211, allocations: 22.86 kB / 403 MB, free: 41.41 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3211, allocations: 0 / 403 MB, free: 41.41 MB / 318.1 MB Notification: Performance of Templates: time 0.00678/0.3279, allocations: 2.798 MB / 405.8 MB, free: 39.99 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches