Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001461/0.001461, allocations: 170.8 kB / 16.77 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008377/0.0008382, allocations: 89.42 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0668/0.0668, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004423/0.0004424, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08565, allocations: 50.36 MB / 442.9 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002765/0.08848, allocations: 2.253 MB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.09015, allocations: 0.8857 MB / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.09043, allocations: 11.94 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.09066, allocations: 43.58 kB / 446.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.09089, allocations: 39.64 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.09146, allocations: 195.7 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.09182, allocations: 346.9 kB / 446.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.09214, allocations: 180.6 kB / 446.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.09226, allocations: 91.45 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.09243, allocations: 111.3 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.09247, allocations: 8 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.09258, allocations: 39.97 kB / 447.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.3e-05/0.09267, allocations: 55.75 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.0928, allocations: 156.8 kB / 447.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.09305, allocations: 271.6 kB / 447.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.09306, allocations: 0 / 447.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.09307, allocations: 0 / 447.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.09309, allocations: 0 / 447.6 MB, free: 11.43 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.0009704/0.09406, allocations: 0.5885 MB / 448.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.09412, allocations: 12.02 kB / 448.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.785e-05/0.0942, allocations: 40.47 kB / 448.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.09461, allocations: 319.9 kB / 448.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.09465, allocations: 24.94 kB / 448.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.0947, allocations: 28.38 kB / 448.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.09597, allocations: 0.783 MB / 449.4 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.096, allocations: 3.906 kB / 449.4 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.09604, allocations: 12 kB / 449.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.09606, allocations: 4 kB / 449.4 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005036/0.09657, allocations: 247.7 kB / 449.7 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006904/0.09727, allocations: 0.7644 MB / 450.4 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008987/0.09818, allocations: 0.6537 MB / 451.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000389/0.09858, allocations: 279 kB / 451.3 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005142/0.0991, allocations: 0.5973 MB / 451.9 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.09914, allocations: 42.55 kB / 452 MB, free: 6.625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.204e-06/0.09915, allocations: 0 / 452 MB, free: 6.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001132/0.1003, allocations: 0.5602 MB / 452.5 MB, free: 6.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.214e-05/0.1004, allocations: 212 kB / 452.8 MB, free: 5.809 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.1006, allocations: 246.6 kB / 453 MB, free: 5.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1006, allocations: 37.7 kB / 453 MB, free: 5.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.1007, allocations: 152.7 kB / 453.2 MB, free: 5.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.1008, allocations: 47.58 kB / 453.2 MB, free: 5.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.326e-05/0.1008, allocations: 12 kB / 453.2 MB, free: 5.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.1009, allocations: 346.8 kB / 453.6 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.1011, allocations: 89.08 kB / 453.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.1013, allocations: 442.9 kB / 454.1 MB, free: 4.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1018, allocations: 0.5322 MB / 454.6 MB, free: 3.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1018, allocations: 7.938 kB / 454.6 MB, free: 3.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006168/0.1024, allocations: 0.4897 MB / 455.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1024, allocations: 12.62 kB / 455.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.1025, allocations: 12.09 kB / 455.1 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.1025, allocations: 19.98 kB / 455.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1028, allocations: 123.8 kB / 455.3 MB, free: 2.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.1028, allocations: 23.92 kB / 455.3 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.103, allocations: 55.58 kB / 455.4 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.1031, allocations: 28 kB / 455.4 MB, free: 2.801 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.1032, allocations: 194.4 kB / 455.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005758/0.1038, allocations: 361.8 kB / 455.9 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005924/0.1044, allocations: 365.2 kB / 456.3 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.1044, allocations: 12 kB / 456.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.1044, allocations: 0 / 456.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.1044, allocations: 0 / 456.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.1047, allocations: 345 kB / 456.6 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.1048, allocations: 3.984 kB / 456.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.1051, allocations: 107.9 kB / 456.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1051, allocations: 0 / 456.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.1052, allocations: 11.94 kB / 456.8 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1052, allocations: 8 kB / 456.8 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1052, allocations: 3.984 kB / 456.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1062, allocations: 0.8135 MB / 457.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.1063, allocations: 124.6 kB / 457.7 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.1063, allocations: 12 kB / 457.7 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.1066, allocations: 40.03 kB / 457.8 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.1066, allocations: 7.938 kB / 457.8 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.1066, allocations: 19.98 kB / 457.8 MB, free: 296 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.1068, allocations: 178 kB / 458 MB, free: 120 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1068, allocations: 0 / 458 MB, free: 120 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004462/0.1072, allocations: 75.91 kB / 458 MB, free: 44 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001977/0.1074, allocations: 127.3 kB / 458.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006974/0.1081, allocations: 369.6 kB / 458.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.1082, allocations: 4.062 kB / 458.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.778e-05/0.1083, allocations: 31.92 kB / 458.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009983/0.1093, allocations: 314.9 kB / 458.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1108, allocations: 0.9165 MB / 459.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.1112, allocations: 0.8159 MB / 460.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.502e-05/0.1113, allocations: 35.42 kB / 460.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1113, allocations: 0 / 460.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of Templates: time 0.006907/0.1182, allocations: 4.412 MB / 465 MB, free: 8.961 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches