Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 96.7 kB / 15.74 MB, free: 424 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.00144/0.00144, allocations: 168.3 kB / 16.62 MB, free: 6.434 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.759/1.759, allocations: 205.4 MB / 222.8 MB, free: 5.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.1011/0.1011, allocations: 12.6 MB / 283.7 MB, free: 8.773 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.0007295/0.0007296, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1291, allocations: 50.38 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002503/0.1316, allocations: 1.662 MB / 396.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1327, allocations: 0.5545 MB / 397.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1328, allocations: 0 / 397.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.1329, allocations: 19.86 kB / 397.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.1331, allocations: 15.86 kB / 397.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.1333, allocations: 51.83 kB / 397.2 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.1335, allocations: 111.6 kB / 397.3 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1337, allocations: 57 kB / 397.4 MB, free: 328 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.953e-05/0.1338, allocations: 31.86 kB / 397.4 MB, free: 296 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.986e-05/0.1339, allocations: 47.77 kB / 397.4 MB, free: 248 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.1339, allocations: 4 kB / 397.5 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.134, allocations: 4 kB / 397.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.769e-05/0.134, allocations: 23.91 kB / 397.5 MB, free: 216 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.1341, allocations: 41.64 kB / 397.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.1342, allocations: 84.05 kB / 397.6 MB, free: 84 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1342, allocations: 0 / 397.6 MB, free: 84 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.1343, allocations: 7.938 kB / 397.6 MB, free: 76 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1343, allocations: 3.938 kB / 397.6 MB, free: 72 kB / 286.1 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.000667/0.1349, allocations: 414.9 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.135, allocations: 8.031 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.461e-05/0.1351, allocations: 15.81 kB / 398 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.1353, allocations: 202.8 kB / 398.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1353, allocations: 16 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1354, allocations: 12 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.1359, allocations: 242.6 kB / 398.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.1359, allocations: 4 kB / 398.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.136, allocations: 4 kB / 398.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.136, allocations: 4 kB / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.1362, allocations: 99.88 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006282/0.1369, allocations: 0.5959 MB / 399.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.1372, allocations: 147.7 kB / 399.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.1374, allocations: 90.75 kB / 399.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.1374, allocations: 0 / 399.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.1375, allocations: 38.56 kB / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 9.32e-07/0.1375, allocations: 0 / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005088/0.138, allocations: 193.4 kB / 399.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/0.1381, allocations: 119.2 kB / 399.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.1382, allocations: 126.2 kB / 399.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.1382, allocations: 37.81 kB / 399.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.602e-05/0.1383, allocations: 111.8 kB / 400.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.1383, allocations: 23.72 kB / 400.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.1383, allocations: 4 kB / 400.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1385, allocations: 318.8 kB / 400.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1386, allocations: 44.34 kB / 400.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.1388, allocations: 142.4 kB / 400.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.1389, allocations: 63.92 kB / 400.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1389, allocations: 3.953 kB / 400.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003603/0.1393, allocations: 209.3 kB / 400.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1393, allocations: 8 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1393, allocations: 4 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.1394, allocations: 8.406 kB / 400.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.1395, allocations: 59.91 kB / 400.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1395, allocations: 4 kB / 400.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1396, allocations: 31.77 kB / 401 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.1397, allocations: 8 kB / 401 MB, free: 12.37 MB / 302.1 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 0.0001269/0.1398, allocations: 133.6 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.14, allocations: 89.48 kB / 401.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1401, allocations: 20.72 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1401, allocations: 0 / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1401, allocations: 4 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1401, allocations: 3.984 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.1404, allocations: 201.6 kB / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1404, allocations: 0 / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.1406, allocations: 43.88 kB / 401.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1406, allocations: 0 / 401.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.1406, allocations: 4 kB / 401.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1406, allocations: 7.984 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1406, allocations: 4 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004964/0.1411, allocations: 396.2 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/0.1412, allocations: 88.98 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.1412, allocations: 7.953 kB / 402 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1413, allocations: 11.98 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.1414, allocations: 7.984 kB / 402 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1414, allocations: 4.094 kB / 402 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.1415, allocations: 108 kB / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1415, allocations: 0 / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.1418, allocations: 27.91 kB / 402.1 MB, free: 11.12 MB / 302.1 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 9.057e-05/0.1419, allocations: 91.25 kB / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003055/0.1422, allocations: 135.9 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1422, allocations: 0 / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.411e-05/0.1423, allocations: 32.67 kB / 402.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.1428, allocations: 56.44 kB / 402.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006652/0.1434, allocations: 485.6 kB / 402.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.1437, allocations: 0.7167 MB / 403.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.674e-05/0.1438, allocations: 13.08 kB / 403.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.1438, allocations: 15.44 kB / 403.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1438, allocations: 0 / 403.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of Templates: time 0.003613/0.1475, allocations: 1.026 MB / 404.7 MB, free: 8.504 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches