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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 173.8 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.236/1.236, allocations: 205 MB / 222.5 MB, free: 9.156 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008506/0.0008505, allocations: 93.23 kB / 270.5 MB, free: 8.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06656/0.06656, allocations: 12.57 MB / 331 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003176, allocations: 12 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06471/0.06504, allocations: 49.98 MB / 441.7 MB, free: 16.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001671/0.06674, allocations: 1.742 MB / 443.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006856/0.06745, allocations: 0.6008 MB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.444e-05/0.06755, allocations: 4 kB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.06766, allocations: 15.86 kB / 444 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.06781, allocations: 27.83 kB / 444.1 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.06804, allocations: 59.89 kB / 444.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.06818, allocations: 119.6 kB / 444.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.06831, allocations: 57.5 kB / 444.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.14e-05/0.06838, allocations: 43.73 kB / 444.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.06845, allocations: 47.72 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.06847, allocations: 4 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.06849, allocations: 4 kB / 444.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.078e-05/0.06855, allocations: 27.91 kB / 444.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.0686, allocations: 59.55 kB / 444.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.832e-05/0.06871, allocations: 100 kB / 444.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.06872, allocations: 0 / 444.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.06873, allocations: 0 / 444.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.06873, allocations: 0 / 444.6 MB, free: 13.49 MB / 298.7 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.000472/0.06921, allocations: 442.8 kB / 445 MB, free: 13.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.06925, allocations: 8.031 kB / 445 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.0693, allocations: 20.66 kB / 445 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.06947, allocations: 212 kB / 445.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.06949, allocations: 16.31 kB / 445.3 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.06952, allocations: 16.38 kB / 445.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.06991, allocations: 260.2 kB / 445.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.06994, allocations: 0 / 445.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.06997, allocations: 4 kB / 445.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.06998, allocations: 4 kB / 445.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.07021, allocations: 99.86 kB / 445.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.07065, allocations: 0.5998 MB / 446.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.07094, allocations: 159.7 kB / 446.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.07108, allocations: 86.77 kB / 446.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.07111, allocations: 4 kB / 446.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.07113, allocations: 34.56 kB / 446.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.07114, allocations: 0 / 446.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004381/0.07158, allocations: 209.2 kB / 446.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.07163, allocations: 110.8 kB / 446.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.07173, allocations: 166.3 kB / 447 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.07175, allocations: 25.7 kB / 447 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.932e-05/0.07179, allocations: 116.3 kB / 447.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.07182, allocations: 31.7 kB / 447.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.07185, allocations: 21.7 kB / 447.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.721e-05/0.07189, allocations: 318.8 kB / 447.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.072, allocations: 39.98 kB / 447.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.07213, allocations: 153.6 kB / 447.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.07235, allocations: 197.5 kB / 447.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.07236, allocations: 384 / 447.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003043/0.07267, allocations: 213.1 kB / 448.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.07269, allocations: 4 kB / 448.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.07271, allocations: 4 kB / 448.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.07273, allocations: 11.94 kB / 448.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.07286, allocations: 52.38 kB / 448.2 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.07288, allocations: 4 kB / 448.2 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.353e-05/0.07298, allocations: 23.84 kB / 448.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.073, allocations: 8 kB / 448.2 MB, free: 9.48 MB / 298.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.751e-05/0.07307, allocations: 137.7 kB / 448.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.07319, allocations: 97.38 kB / 448.4 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.895e-05/0.07327, allocations: 20.7 kB / 448.4 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.07329, allocations: 8 kB / 448.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.07329, allocations: 0 / 448.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.0733, allocations: 0 / 448.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.07349, allocations: 213.5 kB / 448.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.0735, allocations: 0 / 448.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.07367, allocations: 39.91 kB / 448.7 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.696e-06/0.07368, allocations: 4 kB / 448.7 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.07369, allocations: 4 kB / 448.7 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.0737, allocations: 0 / 448.7 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.07371, allocations: 8 kB / 448.7 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000415/0.07413, allocations: 399.9 kB / 449.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.673e-05/0.07418, allocations: 104.9 kB / 449.2 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.07421, allocations: 7.984 kB / 449.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.07434, allocations: 11.94 kB / 449.2 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.07438, allocations: 11.92 kB / 449.2 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.07439, allocations: 4 kB / 449.2 MB, free: 8.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.186e-05/0.07445, allocations: 123.3 kB / 449.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07446, allocations: 0 / 449.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.07473, allocations: 24 kB / 449.4 MB, free: 8.184 MB / 298.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.779e-05/0.0748, allocations: 95.25 kB / 449.5 MB, free: 8.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.07507, allocations: 136.6 kB / 449.6 MB, free: 7.945 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.07508, allocations: 0 / 449.6 MB, free: 7.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.713e-05/0.07517, allocations: 35.92 kB / 449.6 MB, free: 7.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.07562, allocations: 72.58 kB / 449.7 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.07619, allocations: 0.4933 MB / 450.2 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.07632, allocations: 0.7204 MB / 450.9 MB, free: 6.559 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.254e-05/0.07636, allocations: 19.44 kB / 450.9 MB, free: 6.539 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.07636, allocations: 4 kB / 451 MB, free: 6.535 MB / 298.7 MB Notification: Performance of Templates: time 0.002317/0.07868, allocations: 1.593 MB / 452.5 MB, free: 4.945 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/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