Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 103.3 kB / 17.73 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 192.1 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 43.94 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2485, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004021/0.2526, allocations: 2.681 MB / 404.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2542, allocations: 0.9076 MB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.2544, allocations: 15.88 kB / 405 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.2546, allocations: 59.39 kB / 405.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/0.2548, allocations: 59.44 kB / 405.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006106/0.2555, allocations: 237.7 kB / 405.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.2558, allocations: 378.9 kB / 405.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002936/0.2561, allocations: 184.8 kB / 405.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.2563, allocations: 139.4 kB / 406 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2565, allocations: 147.2 kB / 406.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.2565, allocations: 35.94 kB / 406.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.2566, allocations: 71.95 kB / 406.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.665e-05/0.2567, allocations: 75.77 kB / 406.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2569, allocations: 171 kB / 406.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003748/0.2573, allocations: 415.6 kB / 406.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2573, allocations: 4 kB / 406.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2573, allocations: 3.938 kB / 406.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.2573, allocations: 0 / 406.9 MB, free: 3.312 MB / 318.1 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.0009807/0.2583, allocations: 0.6313 MB / 407.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2583, allocations: 11.89 kB / 407.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.788e-05/0.2584, allocations: 44.47 kB / 407.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.2589, allocations: 339.8 kB / 408 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.2589, allocations: 20.94 kB / 408 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.259, allocations: 28.38 kB / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.2602, allocations: 0.7405 MB / 408.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2602, allocations: 4 kB / 408.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.2603, allocations: 15.94 kB / 408.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2603, allocations: 8 kB / 408.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005184/0.2608, allocations: 211.8 kB / 409 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007554/0.2616, allocations: 0.772 MB / 409.7 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009982/0.2626, allocations: 0.6229 MB / 410.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/0.263, allocations: 271.5 kB / 410.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005728/0.2636, allocations: 0.605 MB / 411.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.2637, allocations: 34.56 kB / 411.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.043e-06/0.2637, allocations: 4 kB / 411.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001138/0.2648, allocations: 0.5175 MB / 411.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.2649, allocations: 219.5 kB / 412 MB, free: 13.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.2652, allocations: 250.6 kB / 412.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.2652, allocations: 33.7 kB / 412.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.837e-05/0.2653, allocations: 152.8 kB / 412.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.138e-05/0.2654, allocations: 47.62 kB / 412.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.584e-05/0.2655, allocations: 86.28 kB / 412.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2656, allocations: 342.8 kB / 412.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.2658, allocations: 89.17 kB / 413 MB, free: 12.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.2661, allocations: 438.9 kB / 413.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005727/0.2667, allocations: 0.5242 MB / 413.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.2667, allocations: 8 kB / 413.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007993/0.2675, allocations: 0.4893 MB / 414.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2676, allocations: 12 kB / 414.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.2676, allocations: 12 kB / 414.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.2676, allocations: 16 kB / 414.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003211/0.2679, allocations: 119.8 kB / 414.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.268, allocations: 20.42 kB / 414.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.2682, allocations: 59.58 kB / 414.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/0.2683, allocations: 24 kB / 414.7 MB, free: 10.7 MB / 334.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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.0001757/0.2685, allocations: 189.5 kB / 414.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006071/0.2691, allocations: 342.1 kB / 415.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006645/0.2698, allocations: 365.2 kB / 415.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.2698, allocations: 8 kB / 415.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.2698, allocations: 4.469 kB / 415.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.2698, allocations: 11.86 kB / 415.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.2702, allocations: 337 kB / 415.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.2702, allocations: 4 kB / 415.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.2706, allocations: 99.88 kB / 416 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.2706, allocations: 8 kB / 416 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.2706, allocations: 15.98 kB / 416 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2706, allocations: 0 / 416 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.2706, allocations: 7.984 kB / 416.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.2719, allocations: 0.7785 MB / 416.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.214e-05/0.272, allocations: 112.6 kB / 416.9 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.272, allocations: 15.98 kB / 417 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.2723, allocations: 23.98 kB / 417 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.2723, allocations: 12.05 kB / 417 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.2724, allocations: 16 kB / 417 MB, free: 8.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000163/0.2725, allocations: 182 kB / 417.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2725, allocations: 0 / 417.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005536/0.2731, allocations: 75.89 kB / 417.3 MB, free: 8.016 MB / 334.1 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.0001766/0.2733, allocations: 127.1 kB / 417.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006802/0.274, allocations: 365.5 kB / 417.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.274, allocations: 0 / 417.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.825e-05/0.2741, allocations: 31.97 kB / 417.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000984/0.2751, allocations: 307.7 kB / 418.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.2765, allocations: 0.7877 MB / 418.9 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.2769, allocations: 0.8081 MB / 419.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.804e-05/0.2769, allocations: 31.42 kB / 419.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2769, allocations: 0 / 419.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of Templates: time 0.007273/0.2842, allocations: 4.46 MB / 424.2 MB, free: 1.051 MB / 334.1 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/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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