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.001273/0.001273, allocations: 175.4 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007746/0.0007745, allocations: 101.2 kB / 270.9 MB, free: 8.352 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.0734/0.0734, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003885/0.0003886, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07656/0.07696, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001322/0.07833, allocations: 1.211 MB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002697/0.07861, allocations: 147.6 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.74e-05/0.07869, allocations: 0 / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.07873, allocations: 3.938 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.07884, allocations: 4 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.07905, allocations: 31.91 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.784e-05/0.07912, allocations: 31.92 kB / 444.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.826e-05/0.07921, allocations: 11.98 kB / 444.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.67e-05/0.07925, allocations: 15.92 kB / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.629e-05/0.07929, allocations: 19.86 kB / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.07931, allocations: 0 / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.358e-06/0.07932, allocations: 0 / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.547e-05/0.07935, allocations: 4 kB / 444.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.07938, allocations: 37.64 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.353e-05/0.07944, allocations: 23.95 kB / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.07945, allocations: 0 / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07946, allocations: 0 / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.07947, allocations: 0 / 444.6 MB, free: 14.25 MB / 298.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.0003165/0.07979, allocations: 371.3 kB / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.07983, allocations: 8.031 kB / 444.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.07986, allocations: 11.89 kB / 444.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.08, allocations: 184.4 kB / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.08002, allocations: 7.938 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.08003, allocations: 3.953 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.08027, allocations: 124.9 kB / 445.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.08029, allocations: 0 / 445.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.0803, allocations: 7.984 kB / 445.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.08031, allocations: 0 / 445.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.153e-05/0.08039, allocations: 19.98 kB / 445.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002191/0.08061, allocations: 269.7 kB / 445.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.08078, allocations: 134.3 kB / 445.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.684e-05/0.08084, allocations: 37.7 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.08087, allocations: 4 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.08089, allocations: 30.56 kB / 445.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.08089, allocations: 0 / 445.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002069/0.0811, allocations: 81.64 kB / 445.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.08114, allocations: 85.11 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.929e-05/0.08123, allocations: 142 kB / 446.1 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.623e-06/0.08124, allocations: 25.7 kB / 446.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.08127, allocations: 84.14 kB / 446.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.264e-06/0.08129, allocations: 8 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-06/0.08129, allocations: 0 / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.973e-05/0.08134, allocations: 322.8 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.771e-05/0.08138, allocations: 12 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.08143, allocations: 35.42 kB / 446.5 MB, free: 12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.963e-05/0.08147, allocations: 15.94 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.08148, allocations: 7.938 kB / 446.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001111/0.0816, allocations: 73.52 kB / 446.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.08162, allocations: 4 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.08163, allocations: 4 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.08164, allocations: 4 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.213e-05/0.0817, allocations: 8 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.08171, allocations: 8.109 kB / 446.7 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.288e-05/0.08175, allocations: 4 kB / 446.7 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.08176, allocations: 4 kB / 446.7 MB, free: 11.86 MB / 298.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 (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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.08182, allocations: 125.5 kB / 446.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.299e-05/0.08188, allocations: 49.59 kB / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.446e-05/0.08191, allocations: 12.25 kB / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.08192, allocations: 0 / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.08193, allocations: 0 / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.08193, allocations: 0 / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.08205, allocations: 177.5 kB / 447 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.08206, allocations: 4 kB / 447 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-05/0.08211, allocations: 11.98 kB / 447 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.08212, allocations: 0 / 447 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-06/0.08213, allocations: 0 / 447 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.08214, allocations: 0 / 447 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.08214, allocations: 7.938 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.08226, allocations: 172.6 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.0823, allocations: 93.05 kB / 447.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.08232, allocations: 0 / 447.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.571e-05/0.08238, allocations: 4 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.08241, allocations: 0 / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.08242, allocations: 4 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.08246, allocations: 103.2 kB / 447.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08247, allocations: 4 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.08267, allocations: 11.91 kB / 447.4 MB, free: 10.99 MB / 298.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 (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 (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 5.934e-05/0.08273, allocations: 95.25 kB / 447.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.08286, allocations: 31.92 kB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.08287, allocations: 0 / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.347e-05/0.08291, allocations: 16.23 kB / 447.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.08322, allocations: 27.95 kB / 447.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002292/0.08346, allocations: 183.4 kB / 447.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001015/0.08357, allocations: 0.6927 MB / 448.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.086e-05/0.0836, allocations: 7.438 kB / 448.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.0836, allocations: 0 / 448.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of Templates: time 0.001481/0.08509, allocations: 0.6953 MB / 449.2 MB, free: 9.172 MB / 298.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