Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 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 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 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_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001902/0.001902, allocations: 99.89 kB / 16.02 MB, free: 6.328 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.002597/0.002597, allocations: 192.6 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.1 MB / 222.8 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08672/0.08672, allocations: 12.58 MB / 282.7 MB, free: 15.65 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 84.62 kB / 343 MB, free: 3.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2962, allocations: 49.38 MB / 392.4 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004124/0.3004, allocations: 2.721 MB / 395.1 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3023, allocations: 0.9313 MB / 396 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003213/0.3027, allocations: 10.38 kB / 396 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.303, allocations: 43.83 kB / 396.1 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002769/0.3033, allocations: 47.91 kB / 396.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008853/0.3042, allocations: 211.2 kB / 396.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.3046, allocations: 383.8 kB / 396.7 MB, free: 46.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.305, allocations: 189.7 kB / 396.9 MB, free: 46.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.3052, allocations: 134 kB / 397 MB, free: 46.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.3054, allocations: 158.2 kB / 397.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.3055, allocations: 30.19 kB / 397.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.3056, allocations: 65.77 kB / 397.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.3058, allocations: 81.31 kB / 397.3 MB, free: 45.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.306, allocations: 168.4 kB / 397.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.3064, allocations: 385.6 kB / 397.9 MB, free: 45.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3064, allocations: 0 / 397.9 MB, free: 45.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3064, allocations: 1.281 kB / 397.9 MB, free: 45.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.3065, allocations: 0 / 397.9 MB, free: 45.52 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.001023/0.3075, allocations: 0.6381 MB / 398.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3075, allocations: 12.69 kB / 398.5 MB, free: 44.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.944e-05/0.3076, allocations: 39.66 kB / 398.6 MB, free: 44.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.308, allocations: 325.3 kB / 398.9 MB, free: 44.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.308, allocations: 20.75 kB / 398.9 MB, free: 44.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.797e-05/0.3081, allocations: 30.16 kB / 398.9 MB, free: 44.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3093, allocations: 0.7464 MB / 399.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.3093, allocations: 0 / 399.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.3094, allocations: 15.12 kB / 399.7 MB, free: 44.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.3094, allocations: 6.469 kB / 399.7 MB, free: 44.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.3099, allocations: 221.9 kB / 399.9 MB, free: 44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007876/0.3107, allocations: 0.7715 MB / 400.7 MB, free: 43.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009804/0.3117, allocations: 0.6249 MB / 401.3 MB, free: 42.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/0.3121, allocations: 275 kB / 401.6 MB, free: 42.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00057/0.3127, allocations: 0.5911 MB / 402.2 MB, free: 41.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.3127, allocations: 45.66 kB / 402.2 MB, free: 41.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=52): time 2.054e-06/0.3127, allocations: 0 / 402.2 MB, free: 41.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.001259/0.314, allocations: 0.5202 MB / 402.7 MB, free: 41.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.3142, allocations: 210.3 kB / 402.9 MB, free: 41.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.3145, allocations: 251 kB / 403.2 MB, free: 41.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.3145, allocations: 32.23 kB / 403.2 MB, free: 41.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3146, allocations: 156.7 kB / 403.4 MB, free: 41.06 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.3147, allocations: 48.75 kB / 403.4 MB, free: 41.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3148, allocations: 86.97 kB / 403.5 MB, free: 40.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3149, allocations: 347.8 kB / 403.8 MB, free: 40.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.3151, allocations: 83.81 kB / 403.9 MB, free: 40.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.3155, allocations: 441.7 kB / 404.4 MB, free: 40.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005885/0.3161, allocations: 0.5262 MB / 404.9 MB, free: 39.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.3161, allocations: 7.031 kB / 404.9 MB, free: 39.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009062/0.317, allocations: 491.3 kB / 405.4 MB, free: 39.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.3171, allocations: 14.39 kB / 405.4 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/0.3171, allocations: 12.06 kB / 405.4 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.353e-05/0.3172, allocations: 15.03 kB / 405.4 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003636/0.3175, allocations: 118.7 kB / 405.5 MB, free: 39.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.673e-05/0.3176, allocations: 23.86 kB / 405.5 MB, free: 39.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.3179, allocations: 60.27 kB / 405.6 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.015e-05/0.3179, allocations: 31.44 kB / 405.6 MB, free: 39.14 MB / 318.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.000287/0.3182, allocations: 191.5 kB / 405.8 MB, free: 38.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000724/0.319, allocations: 343.8 kB / 406.2 MB, free: 38.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006266/0.3196, allocations: 359.3 kB / 406.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.3196, allocations: 6.406 kB / 406.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3196, allocations: 1.031 kB / 406.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3197, allocations: 5.109 kB / 406.5 MB, free: 38.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.32, allocations: 346.6 kB / 406.9 MB, free: 38.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.32, allocations: 1.062 kB / 406.9 MB, free: 38.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/0.3204, allocations: 104.7 kB / 407 MB, free: 38.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3204, allocations: 10.19 kB / 407 MB, free: 38.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.3204, allocations: 8.25 kB / 407 MB, free: 38.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3204, allocations: 6.453 kB / 407 MB, free: 38.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3205, allocations: 0.9688 kB / 407 MB, free: 38.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3216, allocations: 0.7783 MB / 407.8 MB, free: 37.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.3217, allocations: 120.5 kB / 407.9 MB, free: 37.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.3218, allocations: 12 kB / 407.9 MB, free: 37.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.322, allocations: 32.03 kB / 407.9 MB, free: 37.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.3221, allocations: 4 kB / 407.9 MB, free: 37.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.3221, allocations: 19.98 kB / 408 MB, free: 37.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.3223, allocations: 178 kB / 408.1 MB, free: 37.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3223, allocations: 0 / 408.1 MB, free: 37.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000591/0.3229, allocations: 72 kB / 408.2 MB, free: 37.27 MB / 318.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.0001918/0.3231, allocations: 117.5 kB / 408.3 MB, free: 37.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007024/0.3238, allocations: 397.4 kB / 408.7 MB, free: 36.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3238, allocations: 0 / 408.7 MB, free: 36.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.339e-05/0.3239, allocations: 31.92 kB / 408.7 MB, free: 36.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008973/0.3248, allocations: 317.6 kB / 409 MB, free: 36.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.3262, allocations: 0.8797 MB / 409.9 MB, free: 35.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.3264, allocations: 0.8081 MB / 410.7 MB, free: 34.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3266, allocations: 43.2 kB / 410.8 MB, free: 34.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.967e-05/0.3266, allocations: 27.44 kB / 410.8 MB, free: 34.6 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3266, allocations: 0 / 410.8 MB, free: 34.6 MB / 318.1 MB Notification: Performance of Templates: time 0.008092/0.3347, allocations: 4.517 MB / 415.3 MB, free: 30.11 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches