Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 84.19 kB / 15.75 MB, free: 416 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.001409/0.00141, allocations: 176.4 kB / 16.63 MB, free: 6.891 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.809/1.809, allocations: 205.4 MB / 222.8 MB, free: 5.875 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.1014/0.1014, allocations: 12.6 MB / 283.7 MB, free: 8.914 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.0007582/0.0007588, allocations: 19.94 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1399, allocations: 50.38 MB / 394.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002887/0.1428, allocations: 1.658 MB / 396.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1443, allocations: 0.5155 MB / 397.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.1445, allocations: 4 kB / 397.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.1446, allocations: 15.86 kB / 397.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.593e-05/0.1447, allocations: 27.83 kB / 397.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.1451, allocations: 43.89 kB / 397.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.1453, allocations: 119.6 kB / 397.3 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.1455, allocations: 40.88 kB / 397.3 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.1456, allocations: 51.66 kB / 397.4 MB, free: 344 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.425e-05/0.1457, allocations: 43.78 kB / 397.4 MB, free: 300 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.1458, allocations: 4 kB / 397.4 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.112e-05/0.1458, allocations: 4 kB / 397.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.593e-05/0.1458, allocations: 15.92 kB / 397.5 MB, free: 276 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.458e-05/0.1459, allocations: 45.64 kB / 397.5 MB, free: 224 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.146, allocations: 84.05 kB / 397.6 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.146, allocations: 0 / 397.6 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.146, allocations: 0 / 397.6 MB, free: 140 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1461, allocations: 0 / 397.6 MB, free: 140 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007067/0.1468, allocations: 415 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1468, allocations: 8.031 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.855e-05/0.1469, allocations: 15.81 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.1472, allocations: 206.8 kB / 398.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.1473, allocations: 8 kB / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.09e-05/0.1473, allocations: 15.91 kB / 398.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.1479, allocations: 238.6 kB / 398.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.1479, allocations: 4 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.1479, allocations: 4 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.148, allocations: 4 kB / 398.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.1482, allocations: 95.86 kB / 398.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008055/0.149, allocations: 0.592 MB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.1493, allocations: 147.9 kB / 399.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1495, allocations: 86.62 kB / 399.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.1496, allocations: 7.984 kB / 399.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.1496, allocations: 34.5 kB / 399.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.1496, allocations: 0 / 399.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006634/0.1503, allocations: 197.3 kB / 399.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.1504, allocations: 111.2 kB / 399.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.1505, allocations: 134.1 kB / 399.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1506, allocations: 37.77 kB / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.642e-05/0.1507, allocations: 107.9 kB / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.1507, allocations: 27.64 kB / 400 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.1507, allocations: 0 / 400 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1509, allocations: 326.8 kB / 400.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.151, allocations: 39.92 kB / 400.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1512, allocations: 144.8 kB / 400.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.1514, allocations: 59.97 kB / 400.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.1514, allocations: 4 kB / 400.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000371/0.1517, allocations: 193.2 kB / 400.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.1518, allocations: 4 kB / 400.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1518, allocations: 7.938 kB / 400.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1518, allocations: 4 kB / 400.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.152, allocations: 44.41 kB / 400.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.152, allocations: 11.94 kB / 400.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.1521, allocations: 27.83 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.1522, allocations: 8 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001148/0.1523, allocations: 137.7 kB / 401 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.1524, allocations: 81.5 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.1525, allocations: 12.72 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1525, allocations: 7.938 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.1525, allocations: 7.984 kB / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1525, allocations: 0 / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1528, allocations: 197.6 kB / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.1528, allocations: 7.984 kB / 401.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.153, allocations: 35.98 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.153, allocations: 0 / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.153, allocations: 4 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.153, allocations: 0 / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.153, allocations: 0 / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.1536, allocations: 395.4 kB / 401.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.1537, allocations: 92.89 kB / 401.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.1537, allocations: 8 kB / 401.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.1538, allocations: 7.984 kB / 401.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.1539, allocations: 4.094 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.1539, allocations: 15.94 kB / 401.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.663e-05/0.154, allocations: 95.27 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.804e-06/0.154, allocations: 4.062 kB / 402 MB, free: 11.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.1543, allocations: 27.94 kB / 402 MB, free: 11.25 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 (14): * Single equations (assignments): 14 * 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 0.0001148/0.1544, allocations: 103.4 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003187/0.1548, allocations: 128.6 kB / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1548, allocations: 0 / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/0.1549, allocations: 35.92 kB / 402.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.1554, allocations: 56.02 kB / 402.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008359/0.1563, allocations: 473.7 kB / 402.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.1567, allocations: 0.7087 MB / 403.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.539e-05/0.1567, allocations: 12.64 kB / 403.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.1568, allocations: 15.44 kB / 403.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1568, allocations: 4 kB / 403.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of Templates: time 0.004231/0.161, allocations: 0.9919 MB / 404.5 MB, free: 8.676 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches