Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.002692/0.002692, allocations: 183.9 kB / 7.46 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6618/0.6618, allocations: 133.5 MB / 141.4 MB, free: 15.69 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.575/1.575, allocations: 221.3 MB / 395 MB, free: 10.16 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 94.27 kB / 477.8 MB, free: 10.78 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5338/0.5351, allocations: 88.44 MB / 0.5529 GB, free: 89.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.7547, allocations: 82.3 MB / 0.6333 GB, free: 13.98 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6787/1.433, allocations: 111.1 MB / 0.7418 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/1.434, allocations: 81.47 kB / 0.7419 GB, free: 10.73 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.007942/1.442, allocations: 2.391 MB / 0.7442 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6e-05/1.442, allocations: 11.38 kB / 0.7442 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/1.442, allocations: 3.906 kB / 0.7442 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/1.442, allocations: 164.6 kB / 0.7444 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/1.442, allocations: 0 / 0.7444 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/1.442, allocations: 10.09 kB / 0.7444 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001236/1.442, allocations: 22.08 kB / 0.7444 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/1.442, allocations: 52.98 kB / 0.7444 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/1.442, allocations: 0 / 0.7444 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/1.443, allocations: 0 / 0.7444 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/1.443, allocations: 3.844 kB / 0.7444 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00024/1.443, allocations: 145.1 kB / 0.7446 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.066e-05/1.443, allocations: 32.62 kB / 0.7446 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/1.443, allocations: 19.83 kB / 0.7446 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005722/1.443, allocations: 0.5652 MB / 0.7452 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/1.444, allocations: 34.31 kB / 0.7452 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.774e-06/1.444, allocations: 3.938 kB / 0.7452 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.002011/1.446, allocations: 0.8404 MB / 0.746 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/1.446, allocations: 52.02 kB / 0.7461 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.84e-05/1.446, allocations: 89.33 kB / 0.7462 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/1.446, allocations: 25.7 kB / 0.7462 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/1.446, allocations: 80.92 kB / 0.7463 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/1.446, allocations: 58.05 kB / 0.7463 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/1.446, allocations: 0 / 0.7463 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001792/1.446, allocations: 315.5 kB / 0.7466 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.243e-05/1.446, allocations: 22.7 kB / 0.7467 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.28e-05/1.446, allocations: 55.69 kB / 0.7467 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.231e-05/1.446, allocations: 39.12 kB / 0.7467 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.446, allocations: 0 / 0.7467 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001962/1.446, allocations: 110.3 kB / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.446, allocations: 8.391 kB / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/1.446, allocations: 0 / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/1.446, allocations: 1.188 kB / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/1.447, allocations: 33.73 kB / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/1.447, allocations: 4.547 kB / 0.7469 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/1.447, allocations: 4 kB / 0.7469 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/1.447, allocations: 4.578 kB / 0.7469 GB, free: 23.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.222e-05/1.447, allocations: 113.3 kB / 0.747 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.597e-05/1.447, allocations: 3.875 kB / 0.747 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/1.447, allocations: 134.3 kB / 0.7471 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/1.447, allocations: 0 / 0.7471 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/1.447, allocations: 0.75 kB / 0.7471 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/1.447, allocations: 4.547 kB / 0.7472 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/1.448, allocations: 383.7 kB / 0.7475 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/1.448, allocations: 0 / 0.7475 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/1.448, allocations: 29.5 kB / 0.7475 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/1.448, allocations: 0 / 0.7475 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/1.448, allocations: 8.453 kB / 0.7476 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/1.448, allocations: 0 / 0.7476 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/1.448, allocations: 12.67 kB / 0.7476 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003889/1.448, allocations: 303.2 kB / 0.7479 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005771/1.449, allocations: 0.7113 MB / 0.7486 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/1.449, allocations: 85.66 kB / 0.7486 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/1.449, allocations: 4.625 kB / 0.7486 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/1.449, allocations: 0.75 kB / 0.7486 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/1.449, allocations: 14.16 kB / 0.7487 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/1.449, allocations: 16.31 kB / 0.7487 GB, free: 22.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.982e-05/1.449, allocations: 75.38 kB / 0.7487 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008818/1.45, allocations: 36.53 kB / 0.7488 GB, free: 22.17 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (y_comp) * 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.0003422/1.451, allocations: 139.5 kB / 0.7489 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001584/1.451, allocations: 73.17 kB / 0.749 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.451, allocations: 0 / 0.749 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 5.845e-05/1.451, allocations: 40 kB / 0.749 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/1.451, allocations: 11.56 kB / 0.749 GB, free: 22.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005185/1.452, allocations: 159.2 kB / 0.7492 GB, free: 21.94 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/1.452, allocations: 0.7073 MB / 0.7499 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/1.452, allocations: 0 / 0.7499 GB, free: 21.23 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)