Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00128/0.001279, allocations: 171.4 kB / 16.76 MB, free: 4.906 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.651/1.651, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0009447/0.0009448, allocations: 85.36 kB / 271.3 MB, free: 8.238 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.1408/0.1408, allocations: 12.59 MB / 332.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007495/0.0007497, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1404, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002138/0.1425, allocations: 1.661 MB / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008075/0.1434, allocations: 0.5311 MB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.1435, allocations: 7.938 kB / 445.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.1436, allocations: 7.922 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.1438, allocations: 23.78 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.144, allocations: 59.88 kB / 445.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.1442, allocations: 115.6 kB / 445.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1443, allocations: 52.98 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.363e-05/0.1444, allocations: 39.78 kB / 445.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.1445, allocations: 43.77 kB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.805e-05/0.1446, allocations: 12 kB / 445.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.995e-05/0.1446, allocations: 4 kB / 445.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.1446, allocations: 19.92 kB / 445.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.078e-05/0.1447, allocations: 77.42 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.1448, allocations: 80.05 kB / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1448, allocations: 0 / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1448, allocations: 0 / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.1448, allocations: 0 / 445.7 MB, free: 13.37 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005709/0.1454, allocations: 411.1 kB / 446.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1455, allocations: 12.03 kB / 446.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.1455, allocations: 16.73 kB / 446.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.1457, allocations: 208.1 kB / 446.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.1457, allocations: 8.375 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.43e-05/0.1458, allocations: 12.38 kB / 446.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.1463, allocations: 254.8 kB / 446.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1464, allocations: 7.844 kB / 446.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.1464, allocations: 8 kB / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.1464, allocations: 4 kB / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.1467, allocations: 91.88 kB / 446.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.1472, allocations: 0.5921 MB / 447.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.1476, allocations: 151.9 kB / 447.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1478, allocations: 86.62 kB / 447.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.521e-05/0.1479, allocations: 0 / 447.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.1479, allocations: 42.5 kB / 447.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.1479, allocations: 0 / 447.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005627/0.1485, allocations: 197.4 kB / 447.8 MB, free: 11.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.1485, allocations: 115.2 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.531e-05/0.1486, allocations: 134.1 kB / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1486, allocations: 25.7 kB / 448 MB, free: 10.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.1487, allocations: 119.7 kB / 448.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.1487, allocations: 23.7 kB / 448.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.735e-06/0.1488, allocations: 4 kB / 448.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.1488, allocations: 326.9 kB / 448.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.149, allocations: 39.97 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.1491, allocations: 145.6 kB / 448.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.1494, allocations: 201.5 kB / 448.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1494, allocations: 0 / 448.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003869/0.1498, allocations: 201.3 kB / 449.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1498, allocations: 12.92 kB / 449.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1498, allocations: 4 kB / 449.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.1499, allocations: 7.938 kB / 449.1 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.15, allocations: 39.98 kB / 449.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.1501, allocations: 11.92 kB / 449.1 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.1502, allocations: 28.19 kB / 449.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1502, allocations: 8 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.566e-05/0.1503, allocations: 137.5 kB / 449.3 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1505, allocations: 93.45 kB / 449.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.665e-05/0.1506, allocations: 16.72 kB / 449.4 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1506, allocations: 4 kB / 449.4 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1506, allocations: 0 / 449.4 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1506, allocations: 3.938 kB / 449.4 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.1508, allocations: 213.4 kB / 449.6 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1508, allocations: 4 kB / 449.6 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.151, allocations: 35.97 kB / 449.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1511, allocations: 0 / 449.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.1511, allocations: 8 kB / 449.7 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1511, allocations: 4 kB / 449.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1511, allocations: 4 kB / 449.7 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005035/0.1516, allocations: 399.3 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.1517, allocations: 96.92 kB / 450.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.1517, allocations: 0 / 450.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.1518, allocations: 15.98 kB / 450.2 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.1519, allocations: 0 / 450.2 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.1519, allocations: 4.094 kB / 450.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.663e-05/0.152, allocations: 107.2 kB / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.152, allocations: 0 / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000349/0.1523, allocations: 28 kB / 450.3 MB, free: 8.234 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.839e-05/0.1524, allocations: 99.19 kB / 450.4 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004783/0.1529, allocations: 128.9 kB / 450.5 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1529, allocations: 0 / 450.5 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.153, allocations: 35.97 kB / 450.6 MB, free: 7.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.1536, allocations: 56.08 kB / 450.6 MB, free: 7.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/0.1543, allocations: 0.4992 MB / 451.1 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.1545, allocations: 0.7087 MB / 451.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/0.1545, allocations: 15.44 kB / 451.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1545, allocations: 3.938 kB / 451.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of Templates: time 0.002568/0.1571, allocations: 1.509 MB / 453.4 MB, free: 5.109 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches