Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001211/0.001211, allocations: 184.2 kB / 7.846 MB, free: 1.156 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.2 MB / 213.4 MB, free: 8.582 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000979/0.0009792, allocations: 88.11 kB / 261.4 MB, free: 5.141 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07768/0.07768, allocations: 12.59 MB / 322 MB, free: 10.34 MB / 274.8 MB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.46e-06, allocations: 0 / 378.4 MB, free: 1.816 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1983, allocations: 50.36 MB / 428.8 MB, free: 57.71 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08339/0.2817, allocations: 79.36 MB / 0.4962 GB, free: 10.23 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.282, allocations: 75.95 kB / 0.4963 GB, free: 10.15 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.00701/0.289, allocations: 2.274 MB / 0.4985 GB, free: 7.883 MB / 354.8 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.289, allocations: 4 kB / 0.4985 GB, free: 7.879 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004805/0.2895, allocations: 406.1 kB / 0.4989 GB, free: 7.438 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2896, allocations: 12.02 kB / 0.4989 GB, free: 7.426 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.2896, allocations: 15.81 kB / 0.4989 GB, free: 7.41 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.2899, allocations: 207 kB / 0.4991 GB, free: 7.168 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.2899, allocations: 4 kB / 0.4991 GB, free: 7.164 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.2899, allocations: 4 kB / 0.4991 GB, free: 7.16 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001477/0.2901, allocations: 71.89 kB / 0.4992 GB, free: 7.09 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.2904, allocations: 187.6 kB / 0.4994 GB, free: 6.883 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2904, allocations: 0 / 0.4994 GB, free: 6.883 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2904, allocations: 0 / 0.4994 GB, free: 6.883 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2905, allocations: 4 kB / 0.4994 GB, free: 6.879 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005973/0.2911, allocations: 0.5612 MB / 0.4999 GB, free: 6.254 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.2913, allocations: 115.3 kB / 0.5 GB, free: 6.117 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.334e-05/0.2914, allocations: 68.22 kB / 0.5001 GB, free: 6.043 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.2914, allocations: 0 / 0.5001 GB, free: 6.043 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.2915, allocations: 34.56 kB / 0.5001 GB, free: 6 MB / 354.8 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.2915, allocations: 0 / 0.5001 GB, free: 6 MB / 354.8 MB Notification: Performance of matching and sorting (n=14): time 0.000236/0.2917, allocations: 97.52 kB / 0.5002 GB, free: 5.898 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.2918, allocations: 114.8 kB / 0.5003 GB, free: 5.762 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.629e-05/0.2919, allocations: 125.2 kB / 0.5005 GB, free: 5.629 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.2919, allocations: 25.7 kB / 0.5005 GB, free: 5.598 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.292, allocations: 108 kB / 0.5006 GB, free: 5.488 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.292, allocations: 27.64 kB / 0.5006 GB, free: 5.461 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.292, allocations: 0 / 0.5006 GB, free: 5.461 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2921, allocations: 322.8 kB / 0.5009 GB, free: 5.137 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/0.2922, allocations: 20.38 kB / 0.5009 GB, free: 5.113 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.466e-05/0.2923, allocations: 122.3 kB / 0.5011 GB, free: 4.945 MB / 354.8 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.2925, allocations: 137.1 kB / 0.5012 GB, free: 4.793 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2925, allocations: 4.094 kB / 0.5012 GB, free: 4.789 MB / 354.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002233/0.2927, allocations: 145.2 kB / 0.5013 GB, free: 4.641 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.2927, allocations: 8.406 kB / 0.5013 GB, free: 4.633 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2927, allocations: 8 kB / 0.5013 GB, free: 4.625 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2928, allocations: 8 kB / 0.5013 GB, free: 4.617 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.2929, allocations: 39.98 kB / 0.5014 GB, free: 4.578 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.2929, allocations: 11.92 kB / 0.5014 GB, free: 4.566 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.2931, allocations: 19.84 kB / 0.5014 GB, free: 4.547 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.2931, allocations: 16 kB / 0.5014 GB, free: 4.531 MB / 354.8 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: PI.y = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.779e-05/0.2932, allocations: 112.9 kB / 0.5015 GB, free: 4.414 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.2934, allocations: 85.48 kB / 0.5016 GB, free: 4.324 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.2934, allocations: 20.38 kB / 0.5016 GB, free: 4.305 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.2934, allocations: 0 / 0.5016 GB, free: 4.305 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2934, allocations: 4 kB / 0.5016 GB, free: 4.301 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2934, allocations: 0 / 0.5016 GB, free: 4.301 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002626/0.2937, allocations: 178.1 kB / 0.5018 GB, free: 4.09 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2937, allocations: 0 / 0.5018 GB, free: 4.09 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.294, allocations: 51.97 kB / 0.5019 GB, free: 4.039 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.294, allocations: 0 / 0.5019 GB, free: 4.039 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.294, allocations: 4 kB / 0.5019 GB, free: 4.035 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.294, allocations: 3.906 kB / 0.5019 GB, free: 4.031 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.294, allocations: 3.984 kB / 0.5019 GB, free: 4.027 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003635/0.2944, allocations: 362.6 kB / 0.5022 GB, free: 3.645 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.2944, allocations: 85.02 kB / 0.5023 GB, free: 3.543 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.2945, allocations: 3.906 kB / 0.5023 GB, free: 3.539 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.2946, allocations: 20.05 kB / 0.5023 GB, free: 3.52 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.2947, allocations: 7.984 kB / 0.5023 GB, free: 3.512 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.2947, allocations: 4 kB / 0.5023 GB, free: 3.508 MB / 354.8 MB Notification: Performance of sort global known variables: time 5.92e-05/0.2948, allocations: 101.9 kB / 0.5024 GB, free: 3.41 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0003201/0.2951, allocations: 28.06 kB / 0.5025 GB, free: 3.383 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001312/0.2952, allocations: 100.8 kB / 0.5026 GB, free: 3.277 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0001824/0.2954, allocations: 84.73 kB / 0.5026 GB, free: 3.195 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2954, allocations: 4.062 kB / 0.5026 GB, free: 3.191 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 3.155e-05/0.2955, allocations: 12 kB / 0.5027 GB, free: 3.18 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.2959, allocations: 65.94 kB / 0.5027 GB, free: 3.117 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006979/0.2966, allocations: 295.3 kB / 0.503 GB, free: 2.797 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.2969, allocations: 0.7393 MB / 0.5037 GB, free: 2.031 MB / 354.8 MB Notification: Performance of SimCode: time 2.4e-07/0.2969, allocations: 4 kB / 0.5037 GB, free: 2.027 MB / 354.8 MB Notification: Performance of Templates: time 0.003646/0.3006, allocations: 1.199 MB / 0.5049 GB, free: 0.8555 MB / 354.8 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches