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.001033/0.001032, 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.001382/0.001382, allocations: 177.4 kB / 16.63 MB, free: 6.887 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.812/1.812, allocations: 205.4 MB / 222.8 MB, free: 5.641 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.1032/0.1032, allocations: 12.6 MB / 283.7 MB, free: 8.699 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.0007549/0.0007554, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1317, allocations: 50.37 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002469/0.1343, allocations: 1.677 MB / 396.6 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1353, allocations: 0.5856 MB / 397.2 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1355, allocations: 4 kB / 397.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.1356, allocations: 15.86 kB / 397.2 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001653/0.1358, allocations: 23.83 kB / 397.2 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.1361, allocations: 67.88 kB / 397.3 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.1363, allocations: 127.5 kB / 397.4 MB, free: 280 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.1364, allocations: 49.45 kB / 397.5 MB, free: 232 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.635e-05/0.1365, allocations: 35.86 kB / 397.5 MB, free: 196 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.322e-05/0.1366, allocations: 47.72 kB / 397.5 MB, free: 148 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.1366, allocations: 8 kB / 397.5 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.1366, allocations: 4 kB / 397.6 MB, free: 136 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.1367, allocations: 23.91 kB / 397.6 MB, free: 112 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.85e-05/0.1368, allocations: 53.56 kB / 397.6 MB, free: 52 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1369, allocations: 96.03 kB / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1369, allocations: 0 / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1369, allocations: 0 / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1369, allocations: 0 / 397.7 MB, free: 15.96 MB / 302.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.0006924/0.1376, allocations: 430.8 kB / 398.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1377, allocations: 12.03 kB / 398.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.1377, allocations: 19.72 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.138, allocations: 214.7 kB / 398.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.138, allocations: 8 kB / 398.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.1381, allocations: 12 kB / 398.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.1386, allocations: 270.4 kB / 398.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.1386, allocations: 0 / 398.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.1387, allocations: 4 kB / 398.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1387, allocations: 4 kB / 398.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.1389, allocations: 99.81 kB / 398.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006407/0.1396, allocations: 0.6115 MB / 399.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.1399, allocations: 155.9 kB / 399.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.1401, allocations: 82.64 kB / 399.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.1401, allocations: 0 / 399.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1401, allocations: 38.55 kB / 399.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.745e-06/0.1402, allocations: 0 / 399.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004865/0.1406, allocations: 201.4 kB / 399.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/0.1407, allocations: 111.1 kB / 400 MB, free: 13.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1409, allocations: 162.8 kB / 400.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.1409, allocations: 29.64 kB / 400.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.141, allocations: 108.6 kB / 400.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.141, allocations: 39.62 kB / 400.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.141, allocations: 4 kB / 400.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1412, allocations: 322.8 kB / 400.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1413, allocations: 44.34 kB / 400.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1415, allocations: 138.5 kB / 400.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.1416, allocations: 59.92 kB / 400.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1416, allocations: 0 / 400.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003659/0.142, allocations: 213.1 kB / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.142, allocations: 8 kB / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.142, allocations: 4 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.1421, allocations: 4 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.1422, allocations: 52.38 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.1423, allocations: 8 kB / 401.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.1424, allocations: 27.83 kB / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.1424, allocations: 8 kB / 401.2 MB, free: 12.16 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.0001247/0.1425, allocations: 133.7 kB / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.1427, allocations: 97.39 kB / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.1428, allocations: 20.7 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1428, allocations: 4 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1429, allocations: 4 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1429, allocations: 0 / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.1431, allocations: 205.6 kB / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.1432, allocations: 3.984 kB / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.1433, allocations: 35.98 kB / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1433, allocations: 7.891 kB / 401.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1434, allocations: 8 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1434, allocations: 0 / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1434, allocations: 3.938 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.1439, allocations: 399.3 kB / 402.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.616e-05/0.144, allocations: 109.1 kB / 402.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.144, allocations: 11.95 kB / 402.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.1442, allocations: 12 kB / 402.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.1442, allocations: 12.06 kB / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.1443, allocations: 3.938 kB / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.4e-05/0.1443, allocations: 119.2 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1444, allocations: 4.062 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.1447, allocations: 24 kB / 402.4 MB, free: 10.87 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.0001274/0.1448, allocations: 95.19 kB / 402.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003207/0.1451, allocations: 136.6 kB / 402.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1451, allocations: 0 / 402.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.092e-05/0.1452, allocations: 27.98 kB / 402.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.1457, allocations: 63.8 kB / 402.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007339/0.1465, allocations: 0.5018 MB / 403.2 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.1468, allocations: 0.7206 MB / 403.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.636e-05/0.1469, allocations: 17.42 kB / 403.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.1469, allocations: 15.44 kB / 403.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1469, allocations: 0 / 403.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of Templates: time 0.003791/0.1507, allocations: 1.159 MB / 405.1 MB, free: 8.066 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