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.001425/0.001425, allocations: 100.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.001291/0.001291, allocations: 176.9 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.545/1.545, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.1065/0.1065, allocations: 12.6 MB / 283.6 MB, free: 8.711 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.0007427/0.0007428, allocations: 16 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1249, allocations: 50.38 MB / 394.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002891/0.128, allocations: 1.639 MB / 396.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009171/0.1289, allocations: 0.5156 MB / 397 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.129, allocations: 0 / 397 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.023e-05/0.1291, allocations: 15.86 kB / 397.1 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.1292, allocations: 23.94 kB / 397.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1296, allocations: 55.81 kB / 397.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.1297, allocations: 79.84 kB / 397.2 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.1299, allocations: 48.86 kB / 397.3 MB, free: 428 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.395e-05/0.13, allocations: 31.86 kB / 397.3 MB, free: 396 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.117e-05/0.1301, allocations: 51.7 kB / 397.3 MB, free: 344 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.1302, allocations: 4 kB / 397.3 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.848e-05/0.1302, allocations: 4 kB / 397.4 MB, free: 336 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.1302, allocations: 19.92 kB / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.1303, allocations: 41.64 kB / 397.4 MB, free: 268 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.1304, allocations: 84.05 kB / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1304, allocations: 0 / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1304, allocations: 4 kB / 397.5 MB, free: 180 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1304, allocations: 0 / 397.5 MB, free: 180 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.0007458/0.1312, allocations: 414.9 kB / 397.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.1312, allocations: 8.031 kB / 397.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.1313, allocations: 19.81 kB / 397.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.1316, allocations: 198.8 kB / 398.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1317, allocations: 12 kB / 398.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.1317, allocations: 19.84 kB / 398.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.1324, allocations: 226.7 kB / 398.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.1324, allocations: 7.938 kB / 398.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.1324, allocations: 4 kB / 398.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1325, allocations: 4 kB / 398.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.1328, allocations: 103.9 kB / 398.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/0.1335, allocations: 0.5843 MB / 399.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.1338, allocations: 148.1 kB / 399.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1338, allocations: 12.02 kB / 399.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.1339, allocations: 34.56 kB / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.422e-06/0.1339, allocations: 0 / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005751/0.1345, allocations: 197.3 kB / 399.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.1345, allocations: 110.8 kB / 399.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.1347, allocations: 134.5 kB / 399.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.1347, allocations: 29.7 kB / 399.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.284e-05/0.1348, allocations: 111.9 kB / 399.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.1348, allocations: 27.83 kB / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/0.1348, allocations: 7.938 kB / 399.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.135, allocations: 322.8 kB / 400.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1351, allocations: 39.97 kB / 400.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.1353, allocations: 136.8 kB / 400.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.1355, allocations: 63.91 kB / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1355, allocations: 0 / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003679/0.1359, allocations: 193.3 kB / 400.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1359, allocations: 8 kB / 400.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1359, allocations: 0 / 400.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1359, allocations: 8 kB / 400.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.1361, allocations: 55.91 kB / 400.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1362, allocations: 4 kB / 400.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.1363, allocations: 24.14 kB / 400.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1363, allocations: 11.94 kB / 400.7 MB, free: 12.61 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.000125/0.1364, allocations: 137.7 kB / 400.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1366, allocations: 85.44 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.036e-05/0.1366, allocations: 16.72 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1366, allocations: 0 / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.1367, allocations: 0 / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.1367, allocations: 4 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.137, allocations: 205.5 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.137, allocations: 4 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1372, allocations: 39.97 kB / 401.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1372, allocations: 0 / 401.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1372, allocations: 4 kB / 401.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.1372, allocations: 0 / 401.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.1372, allocations: 4 kB / 401.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000611/0.1378, allocations: 414.9 kB / 401.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.1379, allocations: 96.84 kB / 401.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.1379, allocations: 0 / 401.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.1381, allocations: 12 kB / 401.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.1381, allocations: 3.984 kB / 401.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1381, allocations: 4 kB / 401.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.2e-05/0.1382, allocations: 103.2 kB / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1382, allocations: 96 / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1385, allocations: 32 kB / 401.9 MB, free: 11.36 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.0001751/0.1387, allocations: 103.2 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003142/0.139, allocations: 120.6 kB / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.139, allocations: 0 / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.603e-05/0.1391, allocations: 35.92 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.1396, allocations: 51.89 kB / 402.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007408/0.1403, allocations: 477.9 kB / 402.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1407, allocations: 0.7204 MB / 403.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.632e-05/0.1407, allocations: 12.64 kB / 403.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/0.1408, allocations: 15.44 kB / 403.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1408, allocations: 0 / 403.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Templates: time 0.004011/0.1448, allocations: 0.9959 MB / 404.4 MB, free: 8.773 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