Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002431/0.00243, allocations: 170.2 kB / 8.19 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001252/0.001252, allocations: 87.73 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09319/0.09319, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.226e-06/8.406e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08402, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2823/0.3663, allocations: 81.08 MB / 0.4979 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.3666, allocations: 70.62 kB / 0.4979 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02893/0.3956, allocations: 6.88 MB / 0.5046 GB, free: 10.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.3957, allocations: 7.594 kB / 0.5047 GB, free: 10.39 MB / 330.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.001045/0.3967, allocations: 0.5749 MB / 0.5052 GB, free: 9.895 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3968, allocations: 15.38 kB / 0.5052 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.944e-05/0.3969, allocations: 42.66 kB / 0.5053 GB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008002/0.3977, allocations: 359.4 kB / 0.5056 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.3977, allocations: 7.562 kB / 0.5056 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.605e-05/0.3978, allocations: 18.84 kB / 0.5056 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000437/0.3982, allocations: 150.4 kB / 0.5058 GB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.3995, allocations: 0.6028 MB / 0.5064 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3995, allocations: 0 / 0.5064 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.3995, allocations: 0 / 0.5064 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3996, allocations: 11.75 kB / 0.5064 GB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008545/0.4004, allocations: 0.7108 MB / 0.5071 GB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009186/0.4014, allocations: 0.5098 MB / 0.5076 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.4018, allocations: 202.8 kB / 0.5078 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006691/0.4025, allocations: 0.5876 MB / 0.5083 GB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.4025, allocations: 41.91 kB / 0.5084 GB, free: 7.629 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.815e-06/0.4025, allocations: 0 / 0.5084 GB, free: 7.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008639/0.4034, allocations: 303 kB / 0.5087 GB, free: 7.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.4035, allocations: 172.7 kB / 0.5088 GB, free: 7.352 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.4038, allocations: 205.9 kB / 0.509 GB, free: 7.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.4039, allocations: 25.7 kB / 0.5091 GB, free: 7.199 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.4039, allocations: 178.1 kB / 0.5092 GB, free: 7.027 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.404, allocations: 54.39 kB / 0.5093 GB, free: 7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/0.404, allocations: 0 / 0.5093 GB, free: 7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.4041, allocations: 332.6 kB / 0.5096 GB, free: 6.676 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.4042, allocations: 55.88 kB / 0.5097 GB, free: 6.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.4046, allocations: 401.4 kB / 0.51 GB, free: 6.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.4049, allocations: 128.1 kB / 0.5102 GB, free: 6.176 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.405, allocations: 3.219 kB / 0.5102 GB, free: 6.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008656/0.4058, allocations: 373.5 kB / 0.5105 GB, free: 6.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4059, allocations: 7.094 kB / 0.5105 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.4059, allocations: 12.22 kB / 0.5105 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.794e-05/0.4059, allocations: 17.22 kB / 0.5105 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.4066, allocations: 126.5 kB / 0.5107 GB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.602e-05/0.4067, allocations: 26.55 kB / 0.5107 GB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.407, allocations: 37.55 kB / 0.5107 GB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.4071, allocations: 30.28 kB / 0.5108 GB, free: 5.984 MB / 330.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 () * 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.0001542/0.4073, allocations: 58.39 kB / 0.5108 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007476/0.408, allocations: 281.3 kB / 0.5111 GB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.4088, allocations: 292.5 kB / 0.5114 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.4089, allocations: 6.594 kB / 0.5114 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4089, allocations: 1.094 kB / 0.5114 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.4089, allocations: 5.016 kB / 0.5114 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000417/0.4093, allocations: 280.3 kB / 0.5116 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.4094, allocations: 1.438 kB / 0.5116 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008396/0.4102, allocations: 112.3 kB / 0.5118 GB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.4102, allocations: 3.562 kB / 0.5118 GB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.4103, allocations: 5.781 kB / 0.5118 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/0.4103, allocations: 7.688 kB / 0.5118 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4103, allocations: 0 / 0.5118 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001161/0.4115, allocations: 0.6742 MB / 0.5124 GB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-05/0.4116, allocations: 119.2 kB / 0.5125 GB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.981e-05/0.4117, allocations: 8.062 kB / 0.5125 GB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.4121, allocations: 25.95 kB / 0.5126 GB, free: 5.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.4122, allocations: 7.266 kB / 0.5126 GB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.4122, allocations: 13.38 kB / 0.5126 GB, free: 5.016 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002019/0.4124, allocations: 160.3 kB / 0.5127 GB, free: 4.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007186/0.4132, allocations: 69.05 kB / 0.5128 GB, free: 4.918 MB / 330.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 () * 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.000225/0.4134, allocations: 117.4 kB / 0.5129 GB, free: 4.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006848/0.4141, allocations: 280.8 kB / 0.5132 GB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4141, allocations: 1.219 kB / 0.5132 GB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.298e-05/0.4142, allocations: 13.91 kB / 0.5132 GB, free: 4.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4153, allocations: 249.3 kB / 0.5134 GB, free: 4.695 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.4174, allocations: 0.5855 MB / 0.514 GB, free: 4.352 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.4179, allocations: 0.8512 MB / 0.5148 GB, free: 3.586 MB / 330.7 MB Notification: Performance of SimCode: time 8.61e-07/0.4179, allocations: 0 / 0.5148 GB, free: 3.586 MB / 330.7 MB Notification: Performance of Templates: time 0.009679/0.4276, allocations: 4.307 MB / 0.5191 GB, free: 1.457 MB / 330.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