Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 96.52 kB / 15.73 MB, free: 440 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.001316/0.001316, allocations: 179.2 kB / 16.61 MB, free: 6.426 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.666/1.666, allocations: 205.4 MB / 222.8 MB, free: 5.645 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.08521/0.08521, allocations: 12.6 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.0007605/0.0007606, allocations: 27.98 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.123, allocations: 50.38 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002625/0.1257, allocations: 1.663 MB / 396.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009929/0.1267, allocations: 0.5817 MB / 397.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1268, allocations: 3.938 kB / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.11e-05/0.1269, allocations: 15.92 kB / 397.2 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.1271, allocations: 31.88 kB / 397.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.1274, allocations: 59.77 kB / 397.2 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.1276, allocations: 91.81 kB / 397.3 MB, free: 352 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1277, allocations: 49.53 kB / 397.4 MB, free: 304 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.969e-05/0.1278, allocations: 35.86 kB / 397.4 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.669e-05/0.1279, allocations: 51.7 kB / 397.5 MB, free: 216 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.1279, allocations: 4 kB / 397.5 MB, free: 212 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.082e-05/0.128, allocations: 4 kB / 397.5 MB, free: 208 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.731e-05/0.128, allocations: 23.92 kB / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.1281, allocations: 41.64 kB / 397.5 MB, free: 136 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.1282, allocations: 96.02 kB / 397.6 MB, free: 40 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1282, allocations: 0 / 397.6 MB, free: 40 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.1282, allocations: 0 / 397.6 MB, free: 40 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1282, allocations: 7.938 kB / 397.6 MB, free: 32 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006067/0.1288, allocations: 438.7 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1289, allocations: 12.03 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.674e-05/0.1289, allocations: 19.72 kB / 398.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.1292, allocations: 214.6 kB / 398.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.1292, allocations: 8 kB / 398.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.639e-05/0.1292, allocations: 20 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.1297, allocations: 258.4 kB / 398.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1298, allocations: 4 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.1298, allocations: 4 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1298, allocations: 8 kB / 398.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.1301, allocations: 91.88 kB / 398.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.1307, allocations: 0.6075 MB / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.1311, allocations: 159.9 kB / 399.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1311, allocations: 0 / 399.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1312, allocations: 38.56 kB / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 9.71e-07/0.1312, allocations: 0 / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005259/0.1317, allocations: 197.6 kB / 399.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.1318, allocations: 115.2 kB / 399.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.1319, allocations: 162.8 kB / 400 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.132, allocations: 25.7 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.1321, allocations: 116.4 kB / 400.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.1321, allocations: 31.64 kB / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.1321, allocations: 0 / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1322, allocations: 326.8 kB / 400.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1323, allocations: 44.38 kB / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1325, allocations: 138.4 kB / 400.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.1326, allocations: 63.91 kB / 400.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1327, allocations: 0 / 400.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003486/0.133, allocations: 209.5 kB / 400.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.133, allocations: 8 kB / 400.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1331, allocations: 4 kB / 400.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.1331, allocations: 7.984 kB / 400.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.1332, allocations: 47.92 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.1333, allocations: 7.938 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1334, allocations: 27.83 kB / 401 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1334, allocations: 8.094 kB / 401 MB, free: 12.33 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.0001091/0.1335, allocations: 141.7 kB / 401.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.1337, allocations: 97.39 kB / 401.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.1338, allocations: 16.72 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-06/0.1338, allocations: 4 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1338, allocations: 0 / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.1338, allocations: 3.984 kB / 401.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.1341, allocations: 209.6 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1341, allocations: 0 / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.1343, allocations: 47.91 kB / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1343, allocations: 3.953 kB / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.1343, allocations: 4 kB / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1343, allocations: 0 / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1343, allocations: 0 / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005454/0.1349, allocations: 430.7 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.166e-05/0.135, allocations: 109.2 kB / 402 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.135, allocations: 0 / 402 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.1351, allocations: 15.98 kB / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.1352, allocations: 7.984 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.1352, allocations: 96 / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.622e-05/0.1353, allocations: 127.2 kB / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1353, allocations: 0 / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.1356, allocations: 24 kB / 402.2 MB, free: 11 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.909e-05/0.1357, allocations: 99.25 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003164/0.136, allocations: 132.6 kB / 402.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.136, allocations: 0 / 402.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.725e-05/0.1362, allocations: 35.91 kB / 402.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1365, allocations: 63.7 kB / 402.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007477/0.1373, allocations: 0.5095 MB / 403 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1376, allocations: 0.7283 MB / 403.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.484e-05/0.1377, allocations: 13.44 kB / 403.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.1377, allocations: 15.44 kB / 403.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1377, allocations: 0 / 403.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Templates: time 0.003793/0.1415, allocations: 1.139 MB / 404.9 MB, free: 8.195 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches