Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001628/0.001628, allocations: 172.4 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.668/1.668, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001233/0.001233, allocations: 97.11 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.09424/0.09424, allocations: 12.59 MB / 322.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.582e-06/6.662e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.0845, allocations: 50.36 MB / 428.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.292/0.3765, allocations: 79.36 MB / 0.4962 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.3769, allocations: 74.53 kB / 0.4963 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01257/0.3895, allocations: 2.275 MB / 0.4985 GB, free: 11.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.3895, allocations: 0 / 0.4985 GB, free: 11.55 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007276/0.3903, allocations: 418.3 kB / 0.4989 GB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3903, allocations: 7.75 kB / 0.4989 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.856e-05/0.3904, allocations: 19.06 kB / 0.4989 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.3907, allocations: 200 kB / 0.4991 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3908, allocations: 3.812 kB / 0.4991 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.3908, allocations: 15.48 kB / 0.4991 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002691/0.3911, allocations: 63 kB / 0.4992 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.3917, allocations: 189.6 kB / 0.4994 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3917, allocations: 0 / 0.4994 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.3917, allocations: 7.812 kB / 0.4994 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3918, allocations: 0 / 0.4994 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008045/0.3926, allocations: 0.5568 MB / 0.4999 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.393, allocations: 120.4 kB / 0.5 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.3932, allocations: 57.14 kB / 0.5001 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.71e-05/0.3932, allocations: 5.516 kB / 0.5001 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.3933, allocations: 43.61 kB / 0.5001 GB, free: 10.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.905e-06/0.3933, allocations: 0 / 0.5001 GB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004521/0.3938, allocations: 94.78 kB / 0.5002 GB, free: 10.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.3939, allocations: 111.2 kB / 0.5003 GB, free: 10.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.394, allocations: 125.4 kB / 0.5004 GB, free: 9.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3941, allocations: 25.7 kB / 0.5005 GB, free: 9.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.706e-05/0.3941, allocations: 173.1 kB / 0.5006 GB, free: 9.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/0.3942, allocations: 29.66 kB / 0.5007 GB, free: 9.742 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.3942, allocations: 4.031 kB / 0.5007 GB, free: 9.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.921e-05/0.3943, allocations: 320 kB / 0.501 GB, free: 9.426 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.481e-05/0.3944, allocations: 22.66 kB / 0.501 GB, free: 9.418 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.3946, allocations: 118.1 kB / 0.5011 GB, free: 9.289 MB / 330.7 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.0002992/0.3949, allocations: 132.4 kB / 0.5012 GB, free: 9.188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3949, allocations: 0 / 0.5012 GB, free: 9.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000407/0.3953, allocations: 142.7 kB / 0.5014 GB, free: 9.133 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3953, allocations: 6.094 kB / 0.5014 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3954, allocations: 3.938 kB / 0.5014 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3954, allocations: 3.844 kB / 0.5014 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003891/0.3958, allocations: 53.7 kB / 0.5014 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.3958, allocations: 15.91 kB / 0.5014 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.3961, allocations: 22.38 kB / 0.5015 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.3961, allocations: 7.75 kB / 0.5015 GB, free: 9.109 MB / 330.7 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.012e-05/0.3962, allocations: 42.52 kB / 0.5015 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002652/0.3965, allocations: 81.91 kB / 0.5016 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.601e-05/0.3966, allocations: 15.83 kB / 0.5016 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3966, allocations: 7.938 kB / 0.5016 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3966, allocations: 96 / 0.5016 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3967, allocations: 9.25 kB / 0.5016 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004052/0.3971, allocations: 174.7 kB / 0.5018 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3971, allocations: 3.812 kB / 0.5018 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005204/0.3976, allocations: 55.66 kB / 0.5018 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3977, allocations: 0 / 0.5018 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.3977, allocations: 3.906 kB / 0.5018 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3977, allocations: 5.641 kB / 0.5018 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3977, allocations: 0 / 0.5018 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000525/0.3983, allocations: 350.5 kB / 0.5022 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.3983, allocations: 90.55 kB / 0.5023 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.3984, allocations: 7.906 kB / 0.5023 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.3988, allocations: 6.516 kB / 0.5023 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.3988, allocations: 9.234 kB / 0.5023 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.3989, allocations: 8.531 kB / 0.5023 GB, free: 8.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.69e-05/0.399, allocations: 95.31 kB / 0.5024 GB, free: 8.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006597/0.3996, allocations: 31.05 kB / 0.5024 GB, free: 8.391 MB / 330.7 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.0001351/0.3998, allocations: 96.11 kB / 0.5025 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.4001, allocations: 86.95 kB / 0.5026 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4001, allocations: 3.938 kB / 0.5026 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.683e-05/0.4002, allocations: 15.12 kB / 0.5026 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.4009, allocations: 56.05 kB / 0.5027 GB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4022, allocations: 317.3 kB / 0.503 GB, free: 8.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.4025, allocations: 0.7491 MB / 0.5037 GB, free: 7.344 MB / 330.7 MB Notification: Performance of SimCode: time 9.31e-07/0.4025, allocations: 0 / 0.5037 GB, free: 7.344 MB / 330.7 MB Notification: Performance of Templates: time 0.005255/0.4078, allocations: 1.596 MB / 0.5053 GB, free: 7.223 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches