Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.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) 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.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") [: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.001565/0.001564, allocations: 176.2 kB / 8.148 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.2 MB / 213.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001273/0.001272, allocations: 89.25 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.127e-05/1.143e-05, allocations: 4 kB / 314.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2542, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.3964, allocations: 89.55 MB / 451.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.3967, allocations: 67.97 kB / 451.4 MB, free: 12.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1766/0.5733, allocations: 51.71 MB / 0.4914 GB, free: 8.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.899e-05/0.5735, allocations: 27.94 kB / 0.4914 GB, free: 8.703 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.004159/0.5776, allocations: 1.57 MB / 0.4929 GB, free: 7.086 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.5777, allocations: 12.03 kB / 0.4929 GB, free: 7.074 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.5782, allocations: 201.6 kB / 0.4931 GB, free: 6.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.5815, allocations: 1.131 MB / 0.4942 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.5816, allocations: 15.91 kB / 0.4942 GB, free: 5.684 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.5817, allocations: 28 kB / 0.4943 GB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001214/0.5829, allocations: 398.1 kB / 0.4947 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.5841, allocations: 426.3 kB / 0.4951 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.5841, allocations: 0 / 0.4951 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.265e-05/0.5842, allocations: 0 / 0.4951 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/0.5843, allocations: 15.98 kB / 0.4951 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005358/0.5896, allocations: 2.046 MB / 0.4971 GB, free: 2.715 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009865/0.5907, allocations: 437.1 kB / 0.4975 GB, free: 2.277 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.5917, allocations: 457.5 kB / 0.4979 GB, free: 1.828 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1568/0.7485, allocations: 7.68 MB / 0.5054 GB, free: 136.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007896/0.7494, allocations: 256.2 kB / 0.5057 GB, free: 136.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=57): time 5.561e-06/0.7494, allocations: 0 / 0.5057 GB, free: 136.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.009479/0.7589, allocations: 2.112 MB / 0.5077 GB, free: 135.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.759, allocations: 61.06 kB / 0.5078 GB, free: 135.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/0.7616, allocations: 0.9926 MB / 0.5088 GB, free: 135.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.407e-05/0.7617, allocations: 25.7 kB / 0.5088 GB, free: 135.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.7619, allocations: 283.9 kB / 0.5091 GB, free: 135.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002581/0.7622, allocations: 201.9 kB / 0.5093 GB, free: 135 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.7623, allocations: 0 / 0.5093 GB, free: 135 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.7624, allocations: 339.1 kB / 0.5096 GB, free: 134.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.7631, allocations: 157.2 kB / 0.5097 GB, free: 134.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007445/0.7638, allocations: 323.3 kB / 0.51 GB, free: 134.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.7655, allocations: 334.9 kB / 0.5104 GB, free: 134.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.7656, allocations: 3.844 kB / 0.5104 GB, free: 134.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003385/0.769, allocations: 0.7821 MB / 0.5111 GB, free: 134.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.769, allocations: 9.375 kB / 0.5111 GB, free: 134.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/0.7692, allocations: 56.22 kB / 0.5112 GB, free: 134.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009451/0.7702, allocations: 143.3 kB / 0.5113 GB, free: 134.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.7716, allocations: 120.9 kB / 0.5114 GB, free: 134.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005571/0.7772, allocations: 2.191 MB / 0.5136 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008516/0.7781, allocations: 23.78 kB / 0.5136 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.7782, allocations: 34 kB / 0.5136 GB, free: 133.1 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vcs:VARIABLE(unit = "V" ) type: Real T1.vcs:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000298/0.7786, allocations: 58.98 kB / 0.5137 GB, free: 133 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005847/0.7792, allocations: 175.8 kB / 0.5139 GB, free: 133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006088/0.7853, allocations: 1.019 MB / 0.5148 GB, free: 132.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.7854, allocations: 6.984 kB / 0.5149 GB, free: 132.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.7854, allocations: 11.69 kB / 0.5149 GB, free: 132.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.7854, allocations: 0 / 0.5149 GB, free: 132.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.7878, allocations: 0.7871 MB / 0.5156 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002031/0.788, allocations: 52.42 kB / 0.5157 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.7891, allocations: 76.03 kB / 0.5158 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.7902, allocations: 147.8 kB / 0.5159 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.7903, allocations: 14.19 kB / 0.5159 GB, free: 132.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005992/0.7963, allocations: 2.17 MB / 0.518 GB, free: 131.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.7964, allocations: 0 / 0.518 GB, free: 131.4 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004113/0.8005, allocations: 1.086 MB / 0.5191 GB, free: 131.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006845/0.8012, allocations: 254.5 kB / 0.5193 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/0.8016, allocations: 4.719 kB / 0.5193 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.8027, allocations: 14.62 kB / 0.5194 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.803, allocations: 46.86 kB / 0.5194 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-05/0.8031, allocations: 22 kB / 0.5194 GB, free: 131 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001922/0.805, allocations: 0.741 MB / 0.5201 GB, free: 130.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001935/0.807, allocations: 403.6 kB / 0.5205 GB, free: 130.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001428/0.8085, allocations: 0.598 MB / 0.5211 GB, free: 130.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.8104, allocations: 0.7226 MB / 0.5218 GB, free: 130.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.8105, allocations: 5.094 kB / 0.5218 GB, free: 130.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.8119, allocations: 0.5196 MB / 0.5223 GB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.8129, allocations: 149.3 kB / 0.5225 GB, free: 130.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.8176, allocations: 1.827 MB / 0.5243 GB, free: 129.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009075/0.8185, allocations: 1.28 MB / 0.5255 GB, free: 129.1 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.8185, allocations: 3.938 kB / 0.5255 GB, free: 129.1 MB / 394.7 MB Notification: Performance of Templates: time 0.04418/0.8627, allocations: 22.88 MB / 0.5479 GB, free: 125.1 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches