Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") [: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.002453/0.002459, allocations: 183.6 kB / 8.196 MB, free: 2.164 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.823/1.823, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001271/0.00127, allocations: 87.7 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.09664/0.09664, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.754e-06/7.905e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09043, allocations: 50.38 MB / 428.8 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2968/0.3873, allocations: 77.37 MB / 0.4943 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.3877, allocations: 76.47 kB / 0.4943 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004626/0.3923, allocations: 1.053 MB / 0.4954 GB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.3924, allocations: 7.844 kB / 0.4954 GB, free: 11.65 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003682/0.3927, allocations: 359.9 kB / 0.4957 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3928, allocations: 7.719 kB / 0.4957 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.3928, allocations: 7.719 kB / 0.4957 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3931, allocations: 194.9 kB / 0.4959 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3931, allocations: 3.844 kB / 0.4959 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.3931, allocations: 7.844 kB / 0.4959 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001294/0.3932, allocations: 32.45 kB / 0.496 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.3936, allocations: 141.1 kB / 0.4961 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3936, allocations: 3.938 kB / 0.4961 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.3936, allocations: 4 kB / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.3936, allocations: 0 / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004101/0.394, allocations: 348.5 kB / 0.4964 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.3943, allocations: 98.34 kB / 0.4965 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.958e-05/0.3944, allocations: 50 kB / 0.4966 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.3944, allocations: 1.312 kB / 0.4966 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.3945, allocations: 50.72 kB / 0.4966 GB, free: 10.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.3945, allocations: 0 / 0.4966 GB, free: 10.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002761/0.3948, allocations: 77.06 kB / 0.4967 GB, free: 10.47 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.3948, allocations: 104.3 kB / 0.4968 GB, free: 10.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3949, allocations: 120.2 kB / 0.4969 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.395, allocations: 29.02 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.395, allocations: 159.7 kB / 0.4971 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.395, allocations: 9.438 kB / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-06/0.3951, allocations: 0 / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.992e-05/0.3951, allocations: 323.7 kB / 0.4974 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.808e-05/0.3952, allocations: 7.156 kB / 0.4974 GB, free: 9.746 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.313e-05/0.3952, allocations: 66.83 kB / 0.4975 GB, free: 9.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.618e-05/0.3953, allocations: 17.47 kB / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3953, allocations: 3.906 kB / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000161/0.3955, allocations: 86.78 kB / 0.4976 GB, free: 9.613 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3955, allocations: 3.844 kB / 0.4976 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3955, allocations: 5.391 kB / 0.4976 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3955, allocations: 3.844 kB / 0.4976 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.3957, allocations: 20.95 kB / 0.4976 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.3957, allocations: 5.359 kB / 0.4976 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.321e-05/0.3958, allocations: 11.88 kB / 0.4976 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.3958, allocations: 4.594 kB / 0.4976 GB, free: 9.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.045e-05/0.3959, allocations: 35.36 kB / 0.4977 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.3961, allocations: 66.31 kB / 0.4977 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.3961, allocations: 16.05 kB / 0.4977 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3962, allocations: 2.016 kB / 0.4977 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.3962, allocations: 7.75 kB / 0.4978 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3962, allocations: 0 / 0.4978 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.3964, allocations: 155.1 kB / 0.4979 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.3964, allocations: 5.734 kB / 0.4979 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.3966, allocations: 17 kB / 0.4979 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3966, allocations: 3.625 kB / 0.4979 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3966, allocations: 5.828 kB / 0.4979 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3966, allocations: 3.938 kB / 0.4979 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3966, allocations: 3.531 kB / 0.4979 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003396/0.397, allocations: 316 kB / 0.4982 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.655e-05/0.3971, allocations: 96.84 kB / 0.4983 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3971, allocations: 4.469 kB / 0.4983 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.3973, allocations: 5.016 kB / 0.4983 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.3973, allocations: 4.984 kB / 0.4983 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.138e-06/0.3974, allocations: 4.438 kB / 0.4984 GB, free: 8.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.308e-05/0.3974, allocations: 101 kB / 0.4984 GB, free: 8.906 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003548/0.3978, allocations: 12.22 kB / 0.4985 GB, free: 8.902 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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 9.876e-05/0.3979, allocations: 95.34 kB / 0.4986 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.3981, allocations: 49.36 kB / 0.4986 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3981, allocations: 4.5 kB / 0.4986 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.469e-05/0.3981, allocations: 8.562 kB / 0.4986 GB, free: 8.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.3985, allocations: 42.64 kB / 0.4987 GB, free: 8.789 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.3989, allocations: 155.6 kB / 0.4988 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.3992, allocations: 0.721 MB / 0.4995 GB, free: 7.953 MB / 330.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3992, allocations: 0 / 0.4995 GB, free: 7.953 MB / 330.7 MB Notification: Performance of Templates: time 0.002937/0.4021, allocations: 0.8969 MB / 0.5004 GB, free: 7.895 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches