Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.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.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009521/0.0009521, allocations: 174.1 kB / 16.8 MB, free: 5.008 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.395/1.395, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007947/0.0007947, allocations: 74.38 kB / 271.3 MB, free: 8.254 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.07193/0.07193, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003762, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08806, allocations: 50.37 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.00145/0.08955, allocations: 1.152 MB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002344/0.08981, allocations: 91.75 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.792e-05/0.08988, allocations: 0 / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.004e-05/0.08991, allocations: 3.938 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.519e-05/0.08995, allocations: 4 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.09021, allocations: 23.97 kB / 445 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.666e-05/0.09028, allocations: 23.94 kB / 445 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.09039, allocations: 7.984 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.678e-05/0.09043, allocations: 11.94 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.931e-05/0.09046, allocations: 3.938 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.09049, allocations: 8 kB / 445 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-06/0.0905, allocations: 0 / 445 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.793e-05/0.09053, allocations: 7.969 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.703e-05/0.09057, allocations: 41.58 kB / 445.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.25e-05/0.09063, allocations: 12.25 kB / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.09064, allocations: 3.938 kB / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09064, allocations: 0 / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.09065, allocations: 0 / 445.1 MB, free: 14.03 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003353/0.09099, allocations: 335.5 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.09103, allocations: 12.03 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.09107, allocations: 4.844 kB / 445.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.09123, allocations: 176.3 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.09126, allocations: 4.375 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-06/0.09128, allocations: 384 / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.09153, allocations: 111.9 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.09155, allocations: 192 / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.09157, allocations: 3.938 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09158, allocations: 0 / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.595e-05/0.09165, allocations: 15.98 kB / 445.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.09177, allocations: 161.5 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.0919, allocations: 50.56 kB / 445.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.09196, allocations: 28.91 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.09199, allocations: 0 / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.09201, allocations: 34.56 kB / 446 MB, free: 12.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.09202, allocations: 0 / 446 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001903/0.09222, allocations: 77.45 kB / 446.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.09226, allocations: 59.41 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.951e-05/0.09232, allocations: 97.86 kB / 446.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.404e-06/0.09234, allocations: 25.7 kB / 446.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.159e-05/0.09237, allocations: 84.12 kB / 446.3 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.414e-06/0.09238, allocations: 8 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.09239, allocations: 3.938 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.09244, allocations: 310.8 kB / 446.6 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-06/0.09246, allocations: 4 kB / 446.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.943e-05/0.09248, allocations: 35.42 kB / 446.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.916e-05/0.09252, allocations: 31.38 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.09252, allocations: 0 / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.42e-05/0.09259, allocations: 57.62 kB / 446.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.09261, allocations: 12.56 kB / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.09262, allocations: 3.938 kB / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.09264, allocations: 0 / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.83e-05/0.09268, allocations: 4 kB / 446.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.0927, allocations: 0 / 446.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.054e-05/0.09272, allocations: 4 kB / 446.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.09273, allocations: 0 / 446.8 MB, free: 12.06 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 5.652e-05/0.09279, allocations: 118.8 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.947e-05/0.09288, allocations: 57.53 kB / 447 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.09292, allocations: 15.42 kB / 447 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.09292, allocations: 4 kB / 447 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.09293, allocations: 0 / 447 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.09294, allocations: 0 / 447 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.08e-05/0.093, allocations: 153.7 kB / 447.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.093, allocations: 256 / 447.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.709e-05/0.09303, allocations: 3.938 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.09303, allocations: 4 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.09305, allocations: 11.94 kB / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.09305, allocations: 0 / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.09306, allocations: 0 / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001006/0.09316, allocations: 81.11 kB / 447.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.0932, allocations: 81.02 kB / 447.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.09321, allocations: 3.938 kB / 447.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.131e-05/0.09324, allocations: 8 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.806e-06/0.09325, allocations: 0 / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.09326, allocations: 0 / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.458e-05/0.09329, allocations: 91.2 kB / 447.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09329, allocations: 0 / 447.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001872/0.09349, allocations: 4 kB / 447.4 MB, free: 11.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.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 7.448e-05/0.09357, allocations: 95.19 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.957e-05/0.09367, allocations: 24.55 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.09369, allocations: 4.062 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-06/0.0937, allocations: 3.938 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.09391, allocations: 20 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/0.09416, allocations: 142.6 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.09429, allocations: 0.677 MB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.847e-05/0.09432, allocations: 11.44 kB / 448.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.09432, allocations: 4 kB / 448.4 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Templates: time 0.001623/0.09595, allocations: 0.529 MB / 448.9 MB, free: 9.754 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches