Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 103.4 kB / 16.02 MB, free: 6.262 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.002061/0.002061, allocations: 197 kB / 16.95 MB, free: 6.109 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.828/1.828, allocations: 205.1 MB / 222.8 MB, free: 4.672 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.0906/0.0906, allocations: 12.6 MB / 282.7 MB, free: 8.785 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.001704/0.001704, allocations: 87.88 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1415, allocations: 49.4 MB / 392.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.003831/0.1454, allocations: 1.922 MB / 394.3 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008718/0.1463, allocations: 495.7 kB / 394.8 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1464, allocations: 4 kB / 394.8 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.1466, allocations: 7.922 kB / 394.8 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.435e-05/0.1467, allocations: 23.8 kB / 394.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001917/0.1469, allocations: 27.91 kB / 394.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.1471, allocations: 91.72 kB / 394.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.1473, allocations: 53.58 kB / 395 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.097e-05/0.1474, allocations: 39.86 kB / 395 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.708e-05/0.1474, allocations: 47.78 kB / 395.1 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.1475, allocations: 8 kB / 395.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.311e-05/0.1475, allocations: 8 kB / 395.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.11e-05/0.1475, allocations: 19.92 kB / 395.1 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.1476, allocations: 47.73 kB / 395.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1478, allocations: 99.61 kB / 395.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1478, allocations: 0 / 395.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1478, allocations: 0 / 395.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.1478, allocations: 0 / 395.2 MB, free: 0.707 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000678/0.1485, allocations: 407.3 kB / 395.6 MB, free: 268 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.1486, allocations: 12.03 kB / 395.7 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.218e-05/0.1486, allocations: 16.72 kB / 395.7 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.1489, allocations: 196.2 kB / 395.9 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.149, allocations: 4.562 kB / 395.9 MB, free: 0 / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.1491, allocations: 16.33 kB / 395.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.1494, allocations: 119.2 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1494, allocations: 4 kB / 396 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.1494, allocations: 4 kB / 396 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.1494, allocations: 4 kB / 396 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.1496, allocations: 67.94 kB / 396.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007641/0.1504, allocations: 0.5324 MB / 396.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.1506, allocations: 78.53 kB / 396.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.1507, allocations: 40.83 kB / 396.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.1508, allocations: 4 kB / 396.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.1508, allocations: 30.56 kB / 396.8 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.1508, allocations: 4 kB / 396.8 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004264/0.1512, allocations: 121.5 kB / 396.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.1513, allocations: 55.34 kB / 396.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1514, allocations: 125.8 kB / 397.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.1514, allocations: 25.7 kB / 397.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.879e-05/0.1515, allocations: 115.7 kB / 397.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.1516, allocations: 27.64 kB / 397.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.1516, allocations: 29.7 kB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1518, allocations: 322.8 kB / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1519, allocations: 31.97 kB / 397.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.152, allocations: 68.27 kB / 397.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.1522, allocations: 104.2 kB / 397.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1523, allocations: 0 / 397.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002747/0.1526, allocations: 133.4 kB / 397.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.1527, allocations: 11.98 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1527, allocations: 0 / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1527, allocations: 3.938 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.1529, allocations: 35.98 kB / 398 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1529, allocations: 8.125 kB / 398 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.428e-05/0.153, allocations: 15.83 kB / 398 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.153, allocations: 4 kB / 398 MB, free: 13.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.000169/0.1532, allocations: 129.7 kB / 398.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.1532, allocations: 3.906 kB / 398.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.267e-05/0.1532, allocations: 12.38 kB / 398.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1532, allocations: 0 / 398.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1533, allocations: 0 / 398.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1533, allocations: 7.984 kB / 398.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.1535, allocations: 201.7 kB / 398.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1535, allocations: 0 / 398.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.1536, allocations: 23.98 kB / 398.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1537, allocations: 0 / 398.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1537, allocations: 3.984 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1537, allocations: 0 / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1537, allocations: 0 / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004285/0.1541, allocations: 239.3 kB / 398.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.1543, allocations: 88.95 kB / 398.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.1543, allocations: 0 / 398.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1544, allocations: 8.031 kB / 398.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.1545, allocations: 4 kB / 398.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.1545, allocations: 4 kB / 398.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.684e-05/0.1546, allocations: 95.27 kB / 398.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.515e-06/0.1546, allocations: 4 kB / 398.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.1549, allocations: 27.84 kB / 398.8 MB, free: 12.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001735/0.155, allocations: 95.23 kB / 398.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.1554, allocations: 88.27 kB / 399 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1554, allocations: 0 / 399 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.1555, allocations: 44.16 kB / 399 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.156, allocations: 36.23 kB / 399.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.1571, allocations: 388.7 kB / 399.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009633/0.1581, allocations: 0.7039 MB / 400.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.501e-05/0.1582, allocations: 8.422 kB / 400.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.1582, allocations: 15.44 kB / 400.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1582, allocations: 0 / 400.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Templates: time 0.004845/0.1631, allocations: 0.9224 MB / 401.1 MB, free: 10.42 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches