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.001395/0.001395, allocations: 111.5 kB / 16.51 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 194.1 kB / 17.44 MB, free: 5.453 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.705/1.705, allocations: 207.6 MB / 225.8 MB, free: 11.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08281/0.08281, allocations: 12.76 MB / 288.4 MB, free: 12.34 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.002469/0.002469, allocations: 96.7 kB / 404.7 MB, free: 43.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1157, allocations: 52.08 MB / 456.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004186/0.1199, allocations: 2.004 MB / 458.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1209, allocations: 0.5463 MB / 459.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.121, allocations: 0 / 459.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1212, allocations: 19.8 kB / 459.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.776e-05/0.1212, allocations: 15.8 kB / 459.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.1215, allocations: 67.88 kB / 459.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002157/0.1218, allocations: 123.5 kB / 459.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.1219, allocations: 49.34 kB / 459.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.99e-05/0.122, allocations: 51.73 kB / 459.7 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1221, allocations: 59.75 kB / 459.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.1221, allocations: 8 kB / 459.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.1222, allocations: 12 kB / 459.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.536e-05/0.1222, allocations: 23.92 kB / 459.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.199e-05/0.1223, allocations: 55.67 kB / 459.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.1225, allocations: 123.5 kB / 459.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1225, allocations: 0 / 459.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1225, allocations: 7.938 kB / 460 MB, free: 4.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1225, allocations: 0 / 460 MB, free: 4.195 MB / 334.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.0006774/0.1232, allocations: 426.9 kB / 460.4 MB, free: 3.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1232, allocations: 12.03 kB / 460.4 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.1233, allocations: 16.84 kB / 460.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.1236, allocations: 204.2 kB / 460.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1236, allocations: 8.375 kB / 460.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.1237, allocations: 16.38 kB / 460.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.1242, allocations: 238.9 kB / 460.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1242, allocations: 7.953 kB / 460.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.1242, allocations: 4 kB / 460.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1242, allocations: 4 kB / 460.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.1245, allocations: 91.81 kB / 461 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000757/0.1252, allocations: 0.5882 MB / 461.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.1255, allocations: 143.9 kB / 461.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.1257, allocations: 66.64 kB / 461.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.1257, allocations: 0 / 461.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.1258, allocations: 42.55 kB / 461.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.1258, allocations: 0 / 461.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005361/0.1263, allocations: 181.4 kB / 462 MB, free: 1.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1264, allocations: 114.8 kB / 462.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.1265, allocations: 130 kB / 462.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.1266, allocations: 29.7 kB / 462.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.1266, allocations: 112.1 kB / 462.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.1267, allocations: 27.78 kB / 462.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.802e-05/0.1267, allocations: 37.8 kB / 462.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.1269, allocations: 322.8 kB / 462.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.127, allocations: 35.97 kB / 462.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.1272, allocations: 128.8 kB / 462.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.1275, allocations: 180.7 kB / 463.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.1275, allocations: 4 kB / 463.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003563/0.1279, allocations: 185.4 kB / 463.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1279, allocations: 8 kB / 463.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1279, allocations: 7.938 kB / 463.3 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1279, allocations: 7.938 kB / 463.3 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.1281, allocations: 39.97 kB / 463.3 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1281, allocations: 7.938 kB / 463.3 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1282, allocations: 23.94 kB / 463.3 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1282, allocations: 12.69 kB / 463.4 MB, free: 408 kB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.1283, allocations: 129.7 kB / 463.5 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.1285, allocations: 85.53 kB / 463.6 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.1285, allocations: 20.66 kB / 463.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1285, allocations: 3.938 kB / 463.6 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.1286, allocations: 7.938 kB / 463.6 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1286, allocations: 3.984 kB / 463.6 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.1289, allocations: 197.6 kB / 463.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1289, allocations: 0 / 463.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.129, allocations: 43.97 kB / 463.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.129, allocations: 0 / 463.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1291, allocations: 7.938 kB / 463.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1291, allocations: 0 / 463.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1291, allocations: 0 / 463.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006134/0.1297, allocations: 383.4 kB / 464.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.322e-05/0.1297, allocations: 85.09 kB / 464.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.1298, allocations: 7.938 kB / 464.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.1299, allocations: 7.984 kB / 464.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.1299, allocations: 8 kB / 464.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.13, allocations: 4 kB / 464.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.347e-05/0.1301, allocations: 99.77 kB / 464.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1301, allocations: 4.062 kB / 464.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1304, allocations: 27.94 kB / 464.5 MB, free: 15.19 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001161/0.1305, allocations: 99.19 kB / 464.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.1308, allocations: 112.5 kB / 464.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1308, allocations: 4.125 kB / 464.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.131, allocations: 31.92 kB / 464.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.1315, allocations: 51.92 kB / 464.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007526/0.1322, allocations: 390.1 kB / 465.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1326, allocations: 0.7123 MB / 465.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.093e-05/0.1326, allocations: 8.609 kB / 465.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.1327, allocations: 23.42 kB / 465.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1327, allocations: 3.938 kB / 465.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Templates: time 0.00463/0.1373, allocations: 1.207 MB / 467.1 MB, free: 12.5 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches