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.001121/0.001121, allocations: 101.2 kB / 15.73 MB, free: 436 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.001355/0.001355, allocations: 178.3 kB / 16.61 MB, free: 6.422 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.553/1.553, allocations: 205.4 MB / 222.8 MB, free: 5.676 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.08088/0.08088, allocations: 12.6 MB / 283.6 MB, free: 8.707 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.0007302/0.0007303, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1116, allocations: 50.39 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001974/0.1137, allocations: 1.237 MB / 396.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000361/0.114, allocations: 143.6 kB / 396.3 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.127e-05/0.1141, allocations: 0 / 396.3 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.873e-05/0.1142, allocations: 3.984 kB / 396.3 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.1143, allocations: 7.875 kB / 396.3 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.1146, allocations: 27.97 kB / 396.3 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.008e-05/0.1147, allocations: 27.91 kB / 396.3 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.545e-05/0.1148, allocations: 16 kB / 396.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.105e-05/0.1148, allocations: 7.922 kB / 396.4 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.978e-05/0.1149, allocations: 11.88 kB / 396.4 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.1149, allocations: 4 kB / 396.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.1149, allocations: 0 / 396.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.02e-05/0.115, allocations: 15.97 kB / 396.4 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.115, allocations: 37.64 kB / 396.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.103e-05/0.1151, allocations: 23.95 kB / 396.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1151, allocations: 0 / 396.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1151, allocations: 4 kB / 396.5 MB, free: 1.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1151, allocations: 0 / 396.5 MB, free: 1.215 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.0004436/0.1156, allocations: 363.3 kB / 396.8 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1156, allocations: 12.03 kB / 396.8 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.1157, allocations: 7.906 kB / 396.8 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.1159, allocations: 186.9 kB / 397 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.1159, allocations: 4 kB / 397 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.1159, allocations: 7.953 kB / 397 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.1162, allocations: 120.9 kB / 397.1 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1162, allocations: 0 / 397.1 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.1162, allocations: 4 kB / 397.1 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1162, allocations: 0 / 397.1 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.776e-05/0.1163, allocations: 27.92 kB / 397.2 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.1167, allocations: 257.8 kB / 397.4 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.1169, allocations: 146.2 kB / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.1169, allocations: 0 / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.1169, allocations: 34.64 kB / 397.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 7.41e-07/0.117, allocations: 0 / 397.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002677/0.1172, allocations: 85.67 kB / 397.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1173, allocations: 85.11 kB / 397.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.1174, allocations: 130 kB / 397.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1175, allocations: 29.7 kB / 397.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.951e-05/0.1175, allocations: 84.14 kB / 398 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1175, allocations: 7.984 kB / 398 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.1175, allocations: 0 / 398 MB, free: 15.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1177, allocations: 310.8 kB / 398.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.463e-05/0.1177, allocations: 23.95 kB / 398.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.656e-05/0.1178, allocations: 27.44 kB / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.905e-05/0.1178, allocations: 31.88 kB / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1179, allocations: 3.938 kB / 398.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000118/0.118, allocations: 65.53 kB / 398.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.118, allocations: 4 kB / 398.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.118, allocations: 4 kB / 398.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.118, allocations: 0 / 398.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.192e-05/0.1181, allocations: 16.05 kB / 398.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1181, allocations: 4 kB / 398.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.327e-05/0.1182, allocations: 4 kB / 398.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.1182, allocations: 7.984 kB / 398.5 MB, free: 14.88 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.876e-05/0.1183, allocations: 129.5 kB / 398.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.1184, allocations: 49.88 kB / 398.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.106e-05/0.1184, allocations: 16.23 kB / 398.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1184, allocations: 0 / 398.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1184, allocations: 0 / 398.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1184, allocations: 4 kB / 398.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.1186, allocations: 169.7 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1186, allocations: 3.953 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.1187, allocations: 11.94 kB / 398.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1187, allocations: 0 / 398.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1187, allocations: 0 / 398.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1187, allocations: 0 / 398.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1187, allocations: 7.984 kB / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1189, allocations: 182 kB / 399.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.89e-05/0.119, allocations: 85.09 kB / 399.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.119, allocations: 0 / 399.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.979e-05/0.1191, allocations: 7.984 kB / 399.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.1191, allocations: 4 kB / 399.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.1191, allocations: 4 kB / 399.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.721e-05/0.1192, allocations: 103.2 kB / 399.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1192, allocations: 4 kB / 399.3 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1194, allocations: 11.91 kB / 399.3 MB, free: 13.99 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: 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 (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 8.743e-05/0.1195, allocations: 99.17 kB / 399.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.1196, allocations: 31.92 kB / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1197, allocations: 4.25 kB / 399.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.1197, allocations: 8 kB / 399.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.12, allocations: 27.91 kB / 399.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002961/0.1203, allocations: 169.7 kB / 399.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.1205, allocations: 0.6926 MB / 400.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.294e-05/0.1206, allocations: 4 kB / 400.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.06e-05/0.1206, allocations: 15.38 kB / 400.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1206, allocations: 0 / 400.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Templates: time 0.002448/0.1231, allocations: 439.4 kB / 400.8 MB, free: 12.45 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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