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.009111/0.009111, allocations: 93.11 kB / 15.91 MB, free: 6.273 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.001717/0.001717, allocations: 200.2 kB / 16.84 MB, free: 6.188 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.538/1.538, allocations: 205.1 MB / 222.7 MB, free: 4.727 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.07959/0.07959, allocations: 12.6 MB / 282.6 MB, free: 8.844 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.001612/0.001612, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0996/0.1012, allocations: 49.4 MB / 392.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.00274/0.104, allocations: 1.602 MB / 393.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003599/0.1044, allocations: 139.5 kB / 393.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.51e-05/0.1045, allocations: 4 kB / 393.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.13e-05/0.1046, allocations: 3.938 kB / 393.9 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.1047, allocations: 7.938 kB / 393.9 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.1049, allocations: 35.91 kB / 394 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.097e-05/0.105, allocations: 27.92 kB / 394 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1052, allocations: 19.98 kB / 394 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.223e-05/0.1052, allocations: 11.94 kB / 394 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.966e-05/0.1053, allocations: 15.86 kB / 394 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.1053, allocations: 0 / 394 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.1053, allocations: 4 kB / 394.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.632e-05/0.1054, allocations: 11.98 kB / 394.1 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.549e-05/0.1054, allocations: 23.8 kB / 394.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1055, allocations: 35.84 kB / 394.1 MB, free: 1.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1055, allocations: 8 kB / 394.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1055, allocations: 0 / 394.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1055, allocations: 0 / 394.1 MB, free: 1.754 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.0004691/0.106, allocations: 371.5 kB / 394.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.1061, allocations: 8.031 kB / 394.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.1061, allocations: 8.844 kB / 394.5 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.1063, allocations: 199.9 kB / 394.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.1063, allocations: 8.375 kB / 394.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.1063, allocations: 384 / 394.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.1066, allocations: 117.6 kB / 394.8 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.1066, allocations: 4.188 kB / 394.8 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.1066, allocations: 3.938 kB / 394.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1066, allocations: 0 / 394.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.731e-05/0.1067, allocations: 23.92 kB / 394.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002945/0.107, allocations: 257.8 kB / 395.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.1072, allocations: 142.2 kB / 395.2 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.384e-05/0.1073, allocations: 33.7 kB / 395.3 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.1073, allocations: 4 kB / 395.3 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1073, allocations: 34.56 kB / 395.3 MB, free: 360 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.1074, allocations: 0 / 395.3 MB, free: 360 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000217/0.1076, allocations: 77.52 kB / 395.4 MB, free: 276 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.1076, allocations: 89.22 kB / 395.5 MB, free: 168 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.1078, allocations: 138 kB / 395.6 MB, free: 16 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.1078, allocations: 25.7 kB / 395.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.031e-05/0.1078, allocations: 80.14 kB / 395.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.1079, allocations: 7.906 kB / 395.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.1079, allocations: 17.66 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.108, allocations: 322.8 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.71e-05/0.1081, allocations: 4 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.963e-05/0.1081, allocations: 39.42 kB / 396.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.194e-05/0.1082, allocations: 43.36 kB / 396.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1082, allocations: 0 / 396.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001143/0.1083, allocations: 73.83 kB / 396.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1084, allocations: 4 kB / 396.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1084, allocations: 0 / 396.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1084, allocations: 4 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.893e-05/0.1084, allocations: 4 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1084, allocations: 4 kB / 396.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.314e-05/0.1085, allocations: 11.89 kB / 396.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1085, allocations: 16.05 kB / 396.3 MB, free: 15.32 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.531e-05/0.1086, allocations: 117.8 kB / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/0.1086, allocations: 45.69 kB / 396.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.1087, allocations: 12.19 kB / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1087, allocations: 0 / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1087, allocations: 0 / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1087, allocations: 0 / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.1089, allocations: 173.6 kB / 396.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1089, allocations: 0 / 396.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.311e-05/0.1089, allocations: 11.98 kB / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1089, allocations: 4 kB / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-06/0.1089, allocations: 0 / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.109, allocations: 3.938 kB / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.109, allocations: 0 / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.1091, allocations: 172.2 kB / 396.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.1092, allocations: 89 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1092, allocations: 4 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.523e-05/0.1093, allocations: 4 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.1093, allocations: 4 kB / 396.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1093, allocations: 7.938 kB / 396.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.712e-05/0.1094, allocations: 103.2 kB / 397 MB, free: 14.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1094, allocations: 0 / 397 MB, free: 14.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.1096, allocations: 8 kB / 397 MB, free: 14.46 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.455e-05/0.1097, allocations: 99.19 kB / 397.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.1099, allocations: 31.92 kB / 397.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1099, allocations: 0 / 397.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.296e-05/0.1099, allocations: 11.92 kB / 397.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.1103, allocations: 27.92 kB / 397.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.1106, allocations: 172.4 kB / 397.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.1109, allocations: 0.6926 MB / 398 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.474e-05/0.1109, allocations: 8 kB / 398 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.111, allocations: 7.438 kB / 398 MB, free: 13.36 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.111, allocations: 0 / 398 MB, free: 13.36 MB / 302.1 MB Notification: Performance of Templates: time 0.002133/0.1131, allocations: 460.5 kB / 398.5 MB, free: 12.91 MB / 302.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