Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009988/0.0009989, 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.438/1.438, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009555/0.0009555, allocations: 93.38 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002577, allocations: 4 kB / 360.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2581, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002291/0.2604, allocations: 2.266 MB / 414.3 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.2618, allocations: 1.268 MB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.262, allocations: 8.656 kB / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.2622, allocations: 51.58 kB / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.2624, allocations: 44.95 kB / 415.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.2629, allocations: 218.1 kB / 415.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.2632, allocations: 358.9 kB / 416.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.2635, allocations: 179.5 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2636, allocations: 99.39 kB / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.2637, allocations: 111.2 kB / 416.6 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.2638, allocations: 12 kB / 416.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.373e-05/0.2639, allocations: 43.97 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.234e-05/0.264, allocations: 55.75 kB / 416.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2641, allocations: 148.7 kB / 416.9 MB, free: 20.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.2644, allocations: 380.1 kB / 417.2 MB, free: 20.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2644, allocations: 4 kB / 417.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2644, allocations: 0 / 417.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.2644, allocations: 0 / 417.3 MB, free: 20.59 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.0008246/0.2652, allocations: 0.5885 MB / 417.8 MB, free: 19.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2653, allocations: 12.03 kB / 417.9 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.259e-05/0.2654, allocations: 40.41 kB / 417.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.2657, allocations: 320 kB / 418.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.2657, allocations: 20.94 kB / 418.2 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.2658, allocations: 28.38 kB / 418.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2669, allocations: 0.7715 MB / 419 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.267, allocations: 4 kB / 419 MB, free: 18.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.267, allocations: 12 kB / 419 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.267, allocations: 8 kB / 419 MB, free: 18.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005094/0.2675, allocations: 247.5 kB / 419.3 MB, free: 18.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006317/0.2682, allocations: 0.7721 MB / 420.1 MB, free: 17.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008724/0.2691, allocations: 0.6536 MB / 420.7 MB, free: 16.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/0.2694, allocations: 275.7 kB / 421 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000478/0.2699, allocations: 0.5973 MB / 421.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.27, allocations: 38.56 kB / 421.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.783e-06/0.27, allocations: 0 / 421.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001011/0.271, allocations: 0.5601 MB / 422.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2711, allocations: 211.8 kB / 422.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.2713, allocations: 254.8 kB / 422.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.2713, allocations: 33.7 kB / 422.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.2714, allocations: 148.8 kB / 422.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.2715, allocations: 47.61 kB / 422.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.2715, allocations: 12 kB / 422.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.2715, allocations: 346.8 kB / 423.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2717, allocations: 97 kB / 423.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.272, allocations: 435 kB / 423.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004225/0.2724, allocations: 0.5402 MB / 424.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2724, allocations: 4 kB / 424.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006004/0.273, allocations: 0.4966 MB / 424.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.273, allocations: 14.25 kB / 424.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.2731, allocations: 12 kB / 424.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.2731, allocations: 24 kB / 424.8 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.2734, allocations: 123.8 kB / 424.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.2734, allocations: 19.94 kB / 425 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.2736, allocations: 59.62 kB / 425 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.2737, allocations: 32 kB / 425 MB, free: 11.96 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.000142/0.2738, allocations: 197.5 kB / 425.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005133/0.2743, allocations: 357.9 kB / 425.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/0.2749, allocations: 364.8 kB / 425.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.2749, allocations: 8 kB / 426 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2749, allocations: 4 kB / 426 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.275, allocations: 7.984 kB / 426 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002881/0.2752, allocations: 337 kB / 426.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.2753, allocations: 0 / 426.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.2756, allocations: 115.8 kB / 426.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2756, allocations: 4 kB / 426.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.2757, allocations: 8 kB / 426.4 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2757, allocations: 4 kB / 426.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2757, allocations: 4 kB / 426.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2767, allocations: 0.806 MB / 427.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.105e-05/0.2767, allocations: 120.6 kB / 427.4 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.727e-05/0.2768, allocations: 12 kB / 427.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.277, allocations: 39.98 kB / 427.4 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.2771, allocations: 11.92 kB / 427.4 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.2771, allocations: 16 kB / 427.4 MB, free: 9.453 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001328/0.2773, allocations: 178 kB / 427.6 MB, free: 9.277 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2773, allocations: 3.938 kB / 427.6 MB, free: 9.273 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004345/0.2777, allocations: 79.91 kB / 427.7 MB, free: 9.195 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.0001589/0.2779, allocations: 135.2 kB / 427.8 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005971/0.2785, allocations: 370.4 kB / 428.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2785, allocations: 64 / 428.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.961e-05/0.2786, allocations: 39.92 kB / 428.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009333/0.2795, allocations: 309.8 kB / 428.5 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.2807, allocations: 0.9149 MB / 429.4 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.2809, allocations: 0.8123 MB / 430.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.281, allocations: 35.28 kB / 430.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.811e-05/0.2811, allocations: 35.42 kB / 430.3 MB, free: 6.496 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2811, allocations: 0 / 430.3 MB, free: 6.496 MB / 298.7 MB Notification: Performance of Templates: time 0.007647/0.2888, allocations: 4.231 MB / 434.5 MB, free: 2.301 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches