Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008954/0.0008954, allocations: 178.8 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008968/0.0008968, allocations: 95.91 kB / 294.4 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003209, allocations: 4 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2182, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002356/0.2206, allocations: 2.26 MB / 406.8 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2219, allocations: 1.073 MB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.222, allocations: 7.938 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.2222, allocations: 48.36 kB / 408 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.2225, allocations: 54.56 kB / 408 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.223, allocations: 211.6 kB / 408.2 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.2233, allocations: 350.9 kB / 408.6 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.2235, allocations: 174.2 kB / 408.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.2237, allocations: 99.44 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.2238, allocations: 107.3 kB / 408.9 MB, free: 26.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.2238, allocations: 23.88 kB / 409 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.557e-05/0.2239, allocations: 47.94 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.224, allocations: 43.78 kB / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.279e-05/0.2241, allocations: 164.7 kB / 409.2 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.2244, allocations: 368.1 kB / 409.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2244, allocations: 0 / 409.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2244, allocations: 0 / 409.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2244, allocations: 0 / 409.6 MB, free: 26.3 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007733/0.2252, allocations: 0.5924 MB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2252, allocations: 8.031 kB / 410.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.2253, allocations: 40.47 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.2256, allocations: 327.9 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.2256, allocations: 20.94 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/0.2257, allocations: 28.38 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.2268, allocations: 0.7756 MB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.2269, allocations: 3.938 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.2269, allocations: 15.98 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.2269, allocations: 4 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.2274, allocations: 243.7 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.2281, allocations: 0.7797 MB / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/0.2289, allocations: 0.6459 MB / 413 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003721/0.2293, allocations: 276 kB / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004915/0.2298, allocations: 0.5972 MB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.2298, allocations: 46.55 kB / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.974e-06/0.2298, allocations: 0 / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.00102/0.2309, allocations: 0.5641 MB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.231, allocations: 215.9 kB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.2311, allocations: 242.6 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.2312, allocations: 37.7 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.2313, allocations: 152.8 kB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.2313, allocations: 47.61 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.2313, allocations: 12 kB / 415.2 MB, free: 20.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.023e-05/0.2314, allocations: 342.8 kB / 415.5 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.2315, allocations: 89.06 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.2318, allocations: 446.9 kB / 416.1 MB, free: 19.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.2323, allocations: 0.532 MB / 416.6 MB, free: 18.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.2323, allocations: 4 kB / 416.6 MB, free: 18.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000602/0.2329, allocations: 0.5016 MB / 417.1 MB, free: 17.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.2329, allocations: 12 kB / 417.1 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2329, allocations: 12 kB / 417.1 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.233, allocations: 16.03 kB / 417.1 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.2333, allocations: 127.8 kB / 417.3 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.2333, allocations: 23.92 kB / 417.3 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.2335, allocations: 55.78 kB / 417.3 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.2335, allocations: 28 kB / 417.4 MB, free: 17.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001451/0.2337, allocations: 194.5 kB / 417.6 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000523/0.2342, allocations: 353.1 kB / 417.9 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005867/0.2348, allocations: 381.5 kB / 418.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.2348, allocations: 11.94 kB / 418.3 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2349, allocations: 0 / 418.3 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2349, allocations: 0 / 418.3 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/0.2352, allocations: 345 kB / 418.6 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.2352, allocations: 0 / 418.6 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.2355, allocations: 111.9 kB / 418.7 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2356, allocations: 0 / 418.7 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2356, allocations: 12 kB / 418.7 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2356, allocations: 7.938 kB / 418.8 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2356, allocations: 0 / 418.8 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.2366, allocations: 0.8099 MB / 419.6 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.2367, allocations: 120.7 kB / 419.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.2367, allocations: 12 kB / 419.7 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.237, allocations: 35.97 kB / 419.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.237, allocations: 4 kB / 419.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.237, allocations: 19.98 kB / 419.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.2372, allocations: 185.9 kB / 419.9 MB, free: 14.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2372, allocations: 4 kB / 419.9 MB, free: 14.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004366/0.2376, allocations: 71.91 kB / 420 MB, free: 14.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001682/0.2378, allocations: 131.2 kB / 420.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005991/0.2384, allocations: 374.6 kB / 420.5 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2384, allocations: 4 kB / 420.5 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.52e-05/0.2385, allocations: 31.92 kB / 420.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008789/0.2394, allocations: 309.9 kB / 420.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.2406, allocations: 0.9235 MB / 421.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.2408, allocations: 0.8123 MB / 422.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.2409, allocations: 35.28 kB / 422.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.812e-05/0.241, allocations: 39.42 kB / 422.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.241, allocations: 0 / 422.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of Templates: time 0.006937/0.2479, allocations: 4.241 MB / 426.9 MB, free: 7.992 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches