Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001688, allocations: 100.9 kB / 16.02 MB, free: 6.32 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.002526/0.002526, allocations: 196.2 kB / 16.95 MB, free: 6.145 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.712/1.712, allocations: 205.1 MB / 222.8 MB, free: 12.45 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.08704/0.08704, allocations: 12.59 MB / 282.7 MB, free: 15.64 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.00173/0.001729, allocations: 95.84 kB / 343 MB, free: 3.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3098, allocations: 49.37 MB / 392.4 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.003088/0.313, allocations: 1.603 MB / 394 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003688/0.3134, allocations: 138.4 kB / 394.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.107e-05/0.3135, allocations: 5.344 kB / 394.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.8e-05/0.3135, allocations: 1.594 kB / 394.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.3136, allocations: 10.12 kB / 394.1 MB, free: 48.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.3139, allocations: 35.02 kB / 394.2 MB, free: 48.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.042e-05/0.314, allocations: 37.47 kB / 394.2 MB, free: 48.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.3141, allocations: 18.39 kB / 394.2 MB, free: 48.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.364e-05/0.3141, allocations: 11.19 kB / 394.2 MB, free: 48.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.649e-05/0.3142, allocations: 18.23 kB / 394.2 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.3142, allocations: 1.969 kB / 394.2 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.163e-05/0.3142, allocations: 3.062 kB / 394.2 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.077e-05/0.3143, allocations: 19.42 kB / 394.3 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.133e-05/0.3143, allocations: 25.73 kB / 394.3 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.3144, allocations: 44.16 kB / 394.3 MB, free: 48.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3144, allocations: 0 / 394.3 MB, free: 48.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3144, allocations: 5.125 kB / 394.3 MB, free: 48.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3145, allocations: 0 / 394.3 MB, free: 48.05 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003909/0.3149, allocations: 367.2 kB / 394.7 MB, free: 47.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3149, allocations: 8.188 kB / 394.7 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.3149, allocations: 9.094 kB / 394.7 MB, free: 47.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3151, allocations: 194.9 kB / 394.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.3151, allocations: 2.125 kB / 394.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.3151, allocations: 2.562 kB / 394.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.3154, allocations: 116.1 kB / 395 MB, free: 47.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.3154, allocations: 192 / 395 MB, free: 47.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.3154, allocations: 7.938 kB / 395 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.3154, allocations: 1.344 kB / 395 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.194e-05/0.3155, allocations: 18.56 kB / 395 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.3158, allocations: 260.9 kB / 395.3 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.3159, allocations: 138.8 kB / 395.4 MB, free: 46.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.047e-05/0.316, allocations: 31.06 kB / 395.5 MB, free: 46.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.316, allocations: 13.67 kB / 395.5 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.364e-05/0.3161, allocations: 32.48 kB / 395.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.793e-06/0.3161, allocations: 1.062 kB / 395.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002414/0.3163, allocations: 84.08 kB / 395.6 MB, free: 46.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.3164, allocations: 79.97 kB / 395.7 MB, free: 46.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.3165, allocations: 134.1 kB / 395.8 MB, free: 46.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.3165, allocations: 25.7 kB / 395.8 MB, free: 46.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.819e-05/0.3166, allocations: 87.59 kB / 395.9 MB, free: 46.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.3166, allocations: 0.6094 kB / 395.9 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.3166, allocations: 23.72 kB / 395.9 MB, free: 46.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.3167, allocations: 317.4 kB / 396.2 MB, free: 46.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.1e-05/0.3167, allocations: 11.28 kB / 396.3 MB, free: 46.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.143e-05/0.3168, allocations: 29.28 kB / 396.3 MB, free: 46.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.445e-05/0.3168, allocations: 49.12 kB / 396.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3169, allocations: 0 / 396.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001202/0.317, allocations: 73.16 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.317, allocations: 5.875 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.317, allocations: 1.062 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.317, allocations: 1.891 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/0.3171, allocations: 9.203 kB / 396.4 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.3171, allocations: 10.05 kB / 396.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.3e-05/0.3172, allocations: 7.062 kB / 396.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3172, allocations: 2.812 kB / 396.4 MB, free: 45.99 MB / 318.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: 0 () * 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 6.609e-05/0.3172, allocations: 124.7 kB / 396.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.3173, allocations: 51.56 kB / 396.6 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.3174, allocations: 12.91 kB / 396.6 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3174, allocations: 1.062 kB / 396.6 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3174, allocations: 1.125 kB / 396.6 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3174, allocations: 4.844 kB / 396.6 MB, free: 45.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.3175, allocations: 166.2 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3175, allocations: 1.812 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.3176, allocations: 11.89 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3176, allocations: 0.875 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.3176, allocations: 1.812 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.3176, allocations: 1.125 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3176, allocations: 0.9375 kB / 396.8 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.3178, allocations: 173 kB / 397 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.3178, allocations: 90.14 kB / 397.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.3178, allocations: 5.719 kB / 397.1 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.174e-05/0.3179, allocations: 7.047 kB / 397.1 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.3179, allocations: 1.75 kB / 397.1 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.318, allocations: 1.094 kB / 397.1 MB, free: 45.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.318, allocations: 103.8 kB / 397.2 MB, free: 45.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.318, allocations: 1.062 kB / 397.2 MB, free: 45.26 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.3183, allocations: 7.594 kB / 397.2 MB, free: 45.25 MB / 318.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: 0 () * 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.437e-05/0.3183, allocations: 93.23 kB / 397.3 MB, free: 45.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001387/0.3185, allocations: 32.52 kB / 397.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3185, allocations: 0 / 397.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.345e-05/0.3185, allocations: 10.69 kB / 397.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.3189, allocations: 29.77 kB / 397.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002832/0.3192, allocations: 180.8 kB / 397.5 MB, free: 44.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001358/0.3193, allocations: 0.6914 MB / 398.2 MB, free: 44.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.171e-05/0.3194, allocations: 2.438 kB / 398.2 MB, free: 44.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.3194, allocations: 13.59 kB / 398.2 MB, free: 44.27 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3194, allocations: 0 / 398.2 MB, free: 44.27 MB / 318.1 MB Notification: Performance of Templates: time 0.002493/0.3219, allocations: 481.9 kB / 398.7 MB, free: 44.13 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches