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.001149/0.001149, allocations: 101.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.001658/0.001658, allocations: 180.5 kB / 16.62 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.613/1.613, allocations: 205.4 MB / 222.8 MB, free: 5.68 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.09061/0.09061, allocations: 12.59 MB / 283.6 MB, free: 8.707 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.0007259/0.0007261, allocations: 20 kB / 344.5 MB, free: 21.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1178, allocations: 50.38 MB / 394.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003192/0.121, allocations: 1.639 MB / 396.5 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1223, allocations: 0.5428 MB / 397.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.1225, allocations: 4 kB / 397.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.248e-05/0.1226, allocations: 11.86 kB / 397.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.1229, allocations: 27.88 kB / 397.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.1234, allocations: 51.88 kB / 397.2 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.1237, allocations: 83.78 kB / 397.2 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.1239, allocations: 49.02 kB / 397.3 MB, free: 404 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1241, allocations: 39.84 kB / 397.3 MB, free: 364 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1243, allocations: 43.78 kB / 397.4 MB, free: 320 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.1243, allocations: 7.938 kB / 397.4 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.402e-05/0.1243, allocations: 4 kB / 397.4 MB, free: 308 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.855e-05/0.1244, allocations: 19.91 kB / 397.4 MB, free: 288 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.154e-05/0.1245, allocations: 49.64 kB / 397.4 MB, free: 232 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.1247, allocations: 88.03 kB / 397.5 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1247, allocations: 4 kB / 397.5 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1247, allocations: 0 / 397.5 MB, free: 140 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.709e-06/0.1247, allocations: 0 / 397.5 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007592/0.1255, allocations: 410.9 kB / 397.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.1255, allocations: 12.03 kB / 397.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.1256, allocations: 15.81 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.1259, allocations: 210.8 kB / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1259, allocations: 12 kB / 398.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.126, allocations: 12 kB / 398.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.1265, allocations: 246.5 kB / 398.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.1266, allocations: 7.984 kB / 398.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.1266, allocations: 4 kB / 398.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1266, allocations: 4 kB / 398.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.1269, allocations: 99.88 kB / 398.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007747/0.1277, allocations: 0.592 MB / 399.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.1281, allocations: 147.9 kB / 399.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.1281, allocations: 4 kB / 399.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.1281, allocations: 46.58 kB / 399.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.1281, allocations: 0 / 399.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005523/0.1287, allocations: 197.5 kB / 399.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.1288, allocations: 114.8 kB / 399.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.1289, allocations: 134.1 kB / 399.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.1289, allocations: 29.7 kB / 399.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.628e-05/0.129, allocations: 107.9 kB / 399.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.129, allocations: 24.08 kB / 399.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-06/0.1291, allocations: 8.031 kB / 399.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1292, allocations: 326.8 kB / 400.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.1293, allocations: 40.34 kB / 400.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1295, allocations: 142.3 kB / 400.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.1296, allocations: 63.97 kB / 400.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.1297, allocations: 4 kB / 400.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003744/0.13, allocations: 209.1 kB / 400.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1301, allocations: 4 kB / 400.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1301, allocations: 4 kB / 400.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1301, allocations: 8 kB / 400.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.1303, allocations: 51.91 kB / 400.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.1303, allocations: 4 kB / 400.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.1304, allocations: 28.17 kB / 400.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.1304, allocations: 12 kB / 400.8 MB, free: 12.52 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.1306, allocations: 133.5 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.1307, allocations: 89.48 kB / 401 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.1309, allocations: 20.7 kB / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1309, allocations: 0 / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1309, allocations: 4 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1309, allocations: 0 / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.1312, allocations: 201.6 kB / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1312, allocations: 0 / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.1314, allocations: 43.97 kB / 401.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1314, allocations: 3.953 kB / 401.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1314, allocations: 4 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.1315, allocations: 3.938 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1315, allocations: 0 / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005495/0.132, allocations: 422.7 kB / 401.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/0.1321, allocations: 88.98 kB / 401.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.1321, allocations: 8 kB / 401.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.1322, allocations: 11.98 kB / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.1323, allocations: 4 kB / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.1323, allocations: 4 kB / 401.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.705e-05/0.1324, allocations: 99.2 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1324, allocations: 4.062 kB / 401.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1327, allocations: 31.91 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 (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 0.0001039/0.1328, allocations: 99.23 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.1331, allocations: 136.6 kB / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1332, allocations: 0 / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1333, allocations: 31.98 kB / 402.2 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.0003575/0.1336, allocations: 55.89 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007061/0.1343, allocations: 479.1 kB / 402.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.1346, allocations: 0.7167 MB / 403.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.135e-05/0.1347, allocations: 17.06 kB / 403.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.1347, allocations: 15.44 kB / 403.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1347, allocations: 0 / 403.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of Templates: time 0.003738/0.1385, allocations: 1.014 MB / 404.5 MB, free: 8.637 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