Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009607/0.0009608, allocations: 98 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.000431, allocations: 8 kB / 360.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2439, allocations: 51.42 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001893/0.2458, allocations: 1.676 MB / 413.7 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007734/0.2466, allocations: 0.6487 MB / 414.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.76e-05/0.2467, allocations: 4.844 kB / 414.4 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.971e-05/0.2468, allocations: 7.922 kB / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.2469, allocations: 22.98 kB / 414.4 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2472, allocations: 47.94 kB / 414.5 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.2473, allocations: 111.6 kB / 414.6 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.2474, allocations: 53.91 kB / 414.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.335e-05/0.2475, allocations: 47.73 kB / 414.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.744e-05/0.2476, allocations: 39.78 kB / 414.7 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.2476, allocations: 4 kB / 414.7 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.2476, allocations: 4 kB / 414.7 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.484e-05/0.2476, allocations: 19.91 kB / 414.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.036e-05/0.2477, allocations: 77.38 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.2478, allocations: 117 kB / 414.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2478, allocations: 0 / 414.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2478, allocations: 0 / 414.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.2478, allocations: 0 / 414.9 MB, free: 23.01 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004661/0.2483, allocations: 411.2 kB / 415.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2484, allocations: 15.97 kB / 415.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.2484, allocations: 12.75 kB / 415.4 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.2486, allocations: 208.1 kB / 415.6 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.2486, allocations: 8.375 kB / 415.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.2486, allocations: 12.38 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.2491, allocations: 242.9 kB / 415.8 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2491, allocations: 8 kB / 415.8 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.2491, allocations: 4 kB / 415.8 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2491, allocations: 4 kB / 415.8 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.2494, allocations: 91.88 kB / 415.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.2498, allocations: 0.5881 MB / 416.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.2501, allocations: 159.9 kB / 416.7 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.2502, allocations: 82.64 kB / 416.8 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.2502, allocations: 3.984 kB / 416.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.2502, allocations: 38.5 kB / 416.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.2502, allocations: 0 / 416.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004344/0.2507, allocations: 193.4 kB / 417 MB, free: 20.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.2507, allocations: 114.8 kB / 417.1 MB, free: 20.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.555e-05/0.2508, allocations: 122.1 kB / 417.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.978e-06/0.2508, allocations: 37.83 kB / 417.2 MB, free: 20.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/0.2509, allocations: 115.9 kB / 417.4 MB, free: 20.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.2509, allocations: 23.73 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.2509, allocations: 4 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.507e-05/0.251, allocations: 322.8 kB / 417.7 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.2511, allocations: 39.97 kB / 417.7 MB, free: 19.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.2512, allocations: 130.4 kB / 417.9 MB, free: 19.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.2514, allocations: 196.9 kB / 418.1 MB, free: 19.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2514, allocations: 0 / 418.1 MB, free: 19.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002915/0.2517, allocations: 205.1 kB / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2518, allocations: 4 kB / 418.3 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2518, allocations: 7.938 kB / 418.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.2518, allocations: 7.938 kB / 418.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.252, allocations: 44.36 kB / 418.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.252, allocations: 11.98 kB / 418.3 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.212e-05/0.2521, allocations: 23.84 kB / 418.4 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.2521, allocations: 8 kB / 418.4 MB, free: 19.18 MB / 298.7 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 6.671e-05/0.2522, allocations: 129.8 kB / 418.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.2523, allocations: 81.53 kB / 418.6 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.2523, allocations: 20.66 kB / 418.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.2523, allocations: 4 kB / 418.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.2523, allocations: 4 kB / 418.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2523, allocations: 0 / 418.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.2526, allocations: 201.5 kB / 418.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2526, allocations: 0 / 418.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.2527, allocations: 43.97 kB / 418.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2527, allocations: 0 / 418.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.2528, allocations: 7.938 kB / 418.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2528, allocations: 4 kB / 418.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2528, allocations: 3.938 kB / 418.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.2532, allocations: 388 kB / 419.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.511e-05/0.2532, allocations: 85.05 kB / 419.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.2532, allocations: 11.92 kB / 419.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.2534, allocations: 8 kB / 419.3 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.2534, allocations: 7.984 kB / 419.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.2534, allocations: 8 kB / 419.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.2535, allocations: 99.2 kB / 419.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2535, allocations: 4.062 kB / 419.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002691/0.2537, allocations: 27.94 kB / 419.5 MB, free: 17.95 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 (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 8.271e-05/0.2538, allocations: 111.4 kB / 419.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002748/0.2541, allocations: 132.5 kB / 419.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2541, allocations: 0 / 419.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.933e-05/0.2542, allocations: 31.97 kB / 419.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.2547, allocations: 59.92 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005908/0.2553, allocations: 481.8 kB / 420.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.2554, allocations: 0.7126 MB / 421 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.434e-05/0.2554, allocations: 12.64 kB / 421 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.2555, allocations: 19.44 kB / 421 MB, free: 16.34 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2555, allocations: 0 / 421 MB, free: 16.34 MB / 298.7 MB Notification: Performance of Templates: time 0.002868/0.2584, allocations: 1.041 MB / 422.1 MB, free: 15.31 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches