Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") [: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.001671/0.00167, allocations: 172.2 kB / 8.187 MB, free: 2.18 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.72/1.72, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001253/0.001253, allocations: 96.56 kB / 261.8 MB, free: 13.63 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.09701/0.09701, allocations: 12.59 MB / 322.3 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.717e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08329, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/0.3897, allocations: 80.14 MB / 0.4969 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.39, allocations: 67.91 kB / 0.497 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02522/0.4152, allocations: 5.229 MB / 0.5021 GB, free: 11.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.4153, allocations: 3.875 kB / 0.5021 GB, free: 11.2 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001396/0.4167, allocations: 0.5467 MB / 0.5027 GB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4168, allocations: 7.719 kB / 0.5027 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.4169, allocations: 34.91 kB / 0.5027 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.4173, allocations: 241.5 kB / 0.5029 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.4176, allocations: 139.2 kB / 0.5031 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.783e-05/0.4177, allocations: 15.19 kB / 0.5031 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001015/0.4187, allocations: 378.3 kB / 0.5034 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.4193, allocations: 271.1 kB / 0.5037 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.4194, allocations: 3.906 kB / 0.5037 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.4194, allocations: 4 kB / 0.5037 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4195, allocations: 7.562 kB / 0.5037 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.4221, allocations: 0.9844 MB / 0.5047 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/0.4226, allocations: 186.9 kB / 0.5049 GB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.423, allocations: 120.3 kB / 0.505 GB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.146e-05/0.423, allocations: 11.73 kB / 0.505 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.4231, allocations: 38.19 kB / 0.505 GB, free: 9.574 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.146e-06/0.4231, allocations: 3.688 kB / 0.505 GB, free: 9.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.01369/0.4368, allocations: 3.011 MB / 0.508 GB, free: 8.504 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.4369, allocations: 59.66 kB / 0.508 GB, free: 8.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.4372, allocations: 185.8 kB / 0.5082 GB, free: 8.328 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.765e-05/0.4373, allocations: 28.33 kB / 0.5082 GB, free: 8.297 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.4373, allocations: 204.9 kB / 0.5084 GB, free: 8.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.4375, allocations: 169.2 kB / 0.5086 GB, free: 7.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.4376, allocations: 4.562 kB / 0.5086 GB, free: 7.977 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.766e-05/0.4377, allocations: 331 kB / 0.5089 GB, free: 7.656 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.4387, allocations: 318 kB / 0.5092 GB, free: 7.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009781/0.4398, allocations: 379 kB / 0.5096 GB, free: 7.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007153/0.4405, allocations: 255.8 kB / 0.5098 GB, free: 7.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4405, allocations: 3.938 kB / 0.5098 GB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00224/0.4428, allocations: 0.6848 MB / 0.5105 GB, free: 7.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.4428, allocations: 5.625 kB / 0.5105 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.4428, allocations: 1.062 kB / 0.5105 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.4429, allocations: 3.969 kB / 0.5105 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/0.445, allocations: 191.9 kB / 0.5107 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.445, allocations: 2.469 kB / 0.5107 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.4465, allocations: 106 kB / 0.5108 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.4466, allocations: 18.91 kB / 0.5108 GB, free: 7.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002175/0.4469, allocations: 32.58 kB / 0.5108 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.447, allocations: 32.64 kB / 0.5109 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.4471, allocations: 33.59 kB / 0.5109 GB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4472, allocations: 4.281 kB / 0.5109 GB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.4472, allocations: 5.5 kB / 0.5109 GB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4472, allocations: 3.984 kB / 0.5109 GB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005817/0.453, allocations: 1.638 MB / 0.5125 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.4531, allocations: 8.25 kB / 0.5125 GB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.4545, allocations: 174.4 kB / 0.5127 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-05/0.4546, allocations: 12.22 kB / 0.5127 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.317e-05/0.4547, allocations: 11 kB / 0.5127 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.597e-05/0.4547, allocations: 18.92 kB / 0.5127 GB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.34e-05/0.4547, allocations: 17.56 kB / 0.5127 GB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002037/0.4568, allocations: 1.298 MB / 0.514 GB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/0.4571, allocations: 147.7 kB / 0.5141 GB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.4572, allocations: 14.61 kB / 0.5142 GB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.4583, allocations: 91.27 kB / 0.5142 GB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/0.4586, allocations: 92.25 kB / 0.5143 GB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.4587, allocations: 22.75 kB / 0.5143 GB, free: 5.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001913/0.4589, allocations: 138.7 kB / 0.5145 GB, free: 4.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007089/0.4596, allocations: 81.12 kB / 0.5146 GB, free: 4.945 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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 Backend phase and start with SimCode phase: time 0.0001999/0.4598, allocations: 115.9 kB / 0.5147 GB, free: 4.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.4615, allocations: 0.5883 MB / 0.5152 GB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.4615, allocations: 5.25 kB / 0.5152 GB, free: 4.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000751/0.4623, allocations: 207.8 kB / 0.5154 GB, free: 4.773 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.463, allocations: 49.19 kB / 0.5155 GB, free: 4.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.466, allocations: 0.8477 MB / 0.5163 GB, free: 4.117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/0.4669, allocations: 0.831 MB / 0.5171 GB, free: 3.363 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.4669, allocations: 0 / 0.5171 GB, free: 3.363 MB / 330.7 MB Notification: Performance of Templates: time 0.01301/0.4799, allocations: 5.433 MB / 0.5224 GB, free: 0.6289 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches