Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 173.8 kB / 16.8 MB, free: 5.012 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.482/1.482, allocations: 205.4 MB / 223 MB, free: 8.93 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.0007605/0.0007608, allocations: 87.75 kB / 271.3 MB, free: 8.234 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.1055/0.1055, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003502, allocations: 15.98 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.08068, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002158/0.08289, allocations: 1.704 MB / 445.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.084, allocations: 0.5542 MB / 445.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.08418, allocations: 0 / 445.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.08431, allocations: 15.86 kB / 446 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.08448, allocations: 19.84 kB / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.08476, allocations: 51.89 kB / 446 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.08495, allocations: 119.6 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.08511, allocations: 49.06 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.627e-05/0.08519, allocations: 39.8 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.979e-05/0.08528, allocations: 51.75 kB / 446.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.08531, allocations: 4 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.088e-05/0.08534, allocations: 4 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.08541, allocations: 23.8 kB / 446.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.512e-05/0.08548, allocations: 73.44 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.0856, allocations: 80.05 kB / 446.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.08561, allocations: 4 kB / 446.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.08562, allocations: 0 / 446.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.08563, allocations: 0 / 446.5 MB, free: 12.62 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005096/0.08614, allocations: 423 kB / 446.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.08619, allocations: 15.97 kB / 446.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.08624, allocations: 16.75 kB / 446.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.08641, allocations: 200.1 kB / 447.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.08643, allocations: 8.375 kB / 447.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.093e-05/0.08647, allocations: 12.38 kB / 447.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/0.0869, allocations: 250.9 kB / 447.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.08693, allocations: 7.844 kB / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.08695, allocations: 8 kB / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.08696, allocations: 4 kB / 447.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002297/0.0872, allocations: 99.88 kB / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.08772, allocations: 0.592 MB / 448.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.08804, allocations: 155.8 kB / 448.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.08819, allocations: 86.62 kB / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.08823, allocations: 0 / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.424e-05/0.08825, allocations: 38.56 kB / 448.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.012e-06/0.08825, allocations: 0 / 448.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004629/0.08872, allocations: 201.3 kB / 448.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.08878, allocations: 110.8 kB / 448.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.373e-05/0.08886, allocations: 131.7 kB / 448.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.08887, allocations: 33.62 kB / 448.8 MB, free: 9.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.08892, allocations: 115.9 kB / 448.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.08894, allocations: 19.72 kB / 449 MB, free: 9.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.08895, allocations: 8 kB / 449 MB, free: 9.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.359e-05/0.089, allocations: 318.8 kB / 449.3 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.08912, allocations: 43.97 kB / 449.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.08925, allocations: 150.1 kB / 449.5 MB, free: 9.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.08953, allocations: 201.5 kB / 449.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.08954, allocations: 0 / 449.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003244/0.08987, allocations: 205.1 kB / 449.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.08989, allocations: 8 kB / 449.9 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.08991, allocations: 4.469 kB / 449.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.08993, allocations: 8 kB / 449.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.09007, allocations: 51.92 kB / 449.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.09009, allocations: 11.98 kB / 449.9 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.676e-05/0.0902, allocations: 24.22 kB / 450 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.09021, allocations: 8 kB / 450 MB, free: 8.715 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 7.208e-05/0.09029, allocations: 130.6 kB / 450.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.09042, allocations: 101.4 kB / 450.2 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.846e-05/0.09052, allocations: 16.72 kB / 450.2 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.09053, allocations: 0 / 450.2 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.09054, allocations: 4 kB / 450.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.09055, allocations: 0 / 450.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.09075, allocations: 209.4 kB / 450.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.09076, allocations: 0 / 450.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.09094, allocations: 47.91 kB / 450.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.09095, allocations: 0 / 450.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.09097, allocations: 8 kB / 450.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.09098, allocations: 0 / 450.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.09098, allocations: 0 / 450.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.09142, allocations: 405.5 kB / 450.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.09146, allocations: 88.86 kB / 451 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.09149, allocations: 8 kB / 451 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.09162, allocations: 15.97 kB / 451 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.09166, allocations: 4.062 kB / 451 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.09168, allocations: 8 kB / 451 MB, free: 7.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.025e-05/0.09172, allocations: 99.25 kB / 451.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09173, allocations: 0 / 451.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.09202, allocations: 28 kB / 451.1 MB, free: 7.465 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 7.598e-05/0.0921, allocations: 95.25 kB / 451.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.0924, allocations: 135.7 kB / 451.4 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.09241, allocations: 0 / 451.4 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.09251, allocations: 40.84 kB / 451.4 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.09296, allocations: 51.95 kB / 451.4 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006333/0.0936, allocations: 0.5113 MB / 452 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.09375, allocations: 0.7165 MB / 452.7 MB, free: 5.844 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.09379, allocations: 15.44 kB / 452.7 MB, free: 5.828 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.0938, allocations: 0 / 452.7 MB, free: 5.828 MB / 298.7 MB Notification: Performance of Templates: time 0.002648/0.09645, allocations: 1.507 MB / 454.2 MB, free: 4.32 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches