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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007183/0.0007183, allocations: 96.86 kB / 16.06 MB, free: 40 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.0009197/0.0009199, allocations: 182.9 kB / 16.96 MB, free: 6.895 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.219/1.219, allocations: 205.4 MB / 223.1 MB, free: 5.488 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.06119/0.06119, allocations: 12.6 MB / 284 MB, free: 8.586 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.0006864/0.0006864, allocations: 20 kB / 345.2 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07449/0.07518, allocations: 50.39 MB / 395.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001685/0.07691, allocations: 1.223 MB / 396.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003374/0.07727, allocations: 139.6 kB / 396.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.835e-05/0.07737, allocations: 0 / 396.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.07741, allocations: 0 / 396.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.07754, allocations: 11.92 kB / 396.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.07778, allocations: 31.91 kB / 397 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.485e-05/0.07788, allocations: 31.92 kB / 397 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.068e-05/0.07798, allocations: 15.94 kB / 397 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.07802, allocations: 7.938 kB / 397 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.502e-05/0.07807, allocations: 19.91 kB / 397 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.07809, allocations: 0 / 397 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.135e-05/0.0781, allocations: 4 kB / 397 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.556e-05/0.07816, allocations: 11.92 kB / 397 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.393e-05/0.07821, allocations: 41.58 kB / 397.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.2e-05/0.07829, allocations: 39.81 kB / 397.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.0783, allocations: 3.938 kB / 397.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.07831, allocations: 4 kB / 397.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.07832, allocations: 3.938 kB / 397.1 MB, free: 0.8203 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003605/0.07869, allocations: 363.5 kB / 397.5 MB, free: 424 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.07873, allocations: 8.031 kB / 397.5 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.704e-05/0.07877, allocations: 8.844 kB / 397.5 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.07895, allocations: 188.1 kB / 397.7 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.07897, allocations: 8.375 kB / 397.7 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.07898, allocations: 4.375 kB / 397.7 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.07925, allocations: 113.6 kB / 397.8 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.07927, allocations: 192 / 397.8 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.07928, allocations: 3.938 kB / 397.8 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.07929, allocations: 0 / 397.8 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.768e-05/0.07938, allocations: 31.92 kB / 397.8 MB, free: 0 / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000294/0.07968, allocations: 253.7 kB / 398.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.07988, allocations: 150.2 kB / 398.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.034e-05/0.07995, allocations: 29.78 kB / 398.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.07998, allocations: 3.984 kB / 398.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.08001, allocations: 34.56 kB / 398.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 3.226e-06/0.08002, allocations: 3.984 kB / 398.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002324/0.08026, allocations: 81.61 kB / 398.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.08032, allocations: 81.11 kB / 398.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.08044, allocations: 141.9 kB / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.08046, allocations: 25.7 kB / 398.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.08051, allocations: 96.06 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-06/0.08053, allocations: 4.125 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.08055, allocations: 13.72 kB / 398.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.284e-05/0.08065, allocations: 314.8 kB / 399.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.947e-05/0.0807, allocations: 11.98 kB / 399.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.65e-05/0.08075, allocations: 39.36 kB / 399.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.244e-05/0.08084, allocations: 47.42 kB / 399.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.08085, allocations: 0 / 399.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001265/0.08098, allocations: 77.5 kB / 399.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.08101, allocations: 4 kB / 399.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.08102, allocations: 0 / 399.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.08103, allocations: 4 kB / 399.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.095e-05/0.0811, allocations: 11.98 kB / 399.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.08111, allocations: 0 / 399.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.329e-05/0.08115, allocations: 11.84 kB / 399.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.08117, allocations: 4 kB / 399.3 MB, free: 14.39 MB / 302.1 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 (step.y,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.425e-05/0.08126, allocations: 133.8 kB / 399.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.08133, allocations: 41.7 kB / 399.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.08137, allocations: 8.234 kB / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.08138, allocations: 4 kB / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.08139, allocations: 0 / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.0814, allocations: 0 / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.08158, allocations: 173.5 kB / 399.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.0816, allocations: 4 kB / 399.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.08165, allocations: 16 kB / 399.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.08166, allocations: 0 / 399.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.08167, allocations: 0 / 399.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.08168, allocations: 0 / 399.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.08169, allocations: 0 / 399.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.08185, allocations: 176.3 kB / 399.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.08191, allocations: 93 kB / 399.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.08193, allocations: 0 / 399.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.705e-05/0.08199, allocations: 7.984 kB / 399.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.529e-05/0.08202, allocations: 4 kB / 399.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.08203, allocations: 4 kB / 399.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.579e-05/0.08209, allocations: 95.27 kB / 400 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0821, allocations: 3.938 kB / 400 MB, free: 13.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002105/0.08232, allocations: 12 kB / 400 MB, free: 13.52 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: 4 (step.y,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.924e-05/0.08239, allocations: 95.25 kB / 400.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.08252, allocations: 35.91 kB / 400.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.08253, allocations: 0 / 400.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.08257, allocations: 8 kB / 400.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.08289, allocations: 32.2 kB / 400.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000266/0.08317, allocations: 177.9 kB / 400.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.0834, allocations: 0.6887 MB / 401.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.092e-05/0.08342, allocations: 3.984 kB / 401.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.08346, allocations: 15.44 kB / 401.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.08346, allocations: 0 / 401.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Templates: time 0.00202/0.08549, allocations: 448 kB / 401.5 MB, free: 11.97 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/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