Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") [: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 trunk/package.mo): time 0.001111/0.001115, allocations: 195.5 kB / 8.535 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008705/0.0008705, allocations: 95.41 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/7.124e-06, allocations: 0 / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09786, allocations: 51.48 MB / 394.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2555/0.3535, allocations: 82.88 MB / 477.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.3537, allocations: 75.81 kB / 477.6 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03288/0.3866, allocations: 15.66 MB / 493.2 MB, free: 13.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3866, allocations: 12 kB / 493.2 MB, free: 13.82 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001469/0.3881, allocations: 0.7437 MB / 494 MB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.3882, allocations: 12.02 kB / 494 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002494/0.3907, allocations: 382.2 kB / 494.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.391, allocations: 310 kB / 494.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.3911, allocations: 16 kB / 494.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.3911, allocations: 36 kB / 494.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007997/0.3919, allocations: 0.5029 MB / 495.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.3926, allocations: 391.4 kB / 495.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.3926, allocations: 0 / 495.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.3926, allocations: 4 kB / 495.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3927, allocations: 12 kB / 495.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/0.3953, allocations: 1.862 MB / 497.5 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/0.396, allocations: 405.7 kB / 497.9 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.3962, allocations: 180.5 kB / 498.1 MB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/0.3964, allocations: 170.6 kB / 498.2 MB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.3964, allocations: 44.69 kB / 498.3 MB, free: 9.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 1.934e-06/0.3964, allocations: 0 / 498.3 MB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.0009804/0.3974, allocations: 420.9 kB / 498.7 MB, free: 9.273 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.3975, allocations: 55.84 kB / 498.7 MB, free: 9.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.3976, allocations: 154.6 kB / 498.9 MB, free: 9.066 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.3977, allocations: 25.7 kB / 498.9 MB, free: 9.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.24e-05/0.3978, allocations: 216.8 kB / 499.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.3979, allocations: 157.9 kB / 499.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.3979, allocations: 0 / 499.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.398, allocations: 336.7 kB / 499.6 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.3982, allocations: 131.2 kB / 499.7 MB, free: 8.301 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.3984, allocations: 211.8 kB / 499.9 MB, free: 8.137 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.3989, allocations: 178 kB / 0.4884 GB, free: 8.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3989, allocations: 0 / 0.4884 GB, free: 8.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009576/0.3998, allocations: 0.4907 MB / 0.4889 GB, free: 7.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.3999, allocations: 6.031 kB / 0.4889 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3999, allocations: 4 kB / 0.4889 GB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.4002, allocations: 94.59 kB / 0.489 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.4006, allocations: 95.08 kB / 0.4891 GB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.4024, allocations: 1.726 MB / 0.4908 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.4027, allocations: 43.52 kB / 0.4908 GB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.4027, allocations: 18.69 kB / 0.4908 GB, free: 5.777 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.4028, allocations: 115.9 kB / 0.4909 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.93e-05/0.4029, allocations: 30.03 kB / 0.4909 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.404, allocations: 0.5014 MB / 0.4914 GB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.404, allocations: 4 kB / 0.4914 GB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.404, allocations: 8 kB / 0.4915 GB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.404, allocations: 3.984 kB / 0.4915 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.4055, allocations: 1.041 MB / 0.4925 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4055, allocations: 0 / 0.4925 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.4059, allocations: 78.78 kB / 0.4925 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002566/0.4062, allocations: 85.12 kB / 0.4926 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.4062, allocations: 7.984 kB / 0.4926 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.4078, allocations: 1.728 MB / 0.4943 GB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4079, allocations: 4 kB / 0.4943 GB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001174/0.409, allocations: 0.7372 MB / 0.495 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.683e-05/0.4091, allocations: 104.8 kB / 0.4951 GB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.4092, allocations: 0 / 0.4951 GB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.4094, allocations: 15.98 kB / 0.4952 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.4095, allocations: 33.86 kB / 0.4952 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.4095, allocations: 16 kB / 0.4952 GB, free: 1.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.986e-05/0.4096, allocations: 120.1 kB / 0.4953 GB, free: 1.449 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005379/0.4102, allocations: 147.5 kB / 0.4955 GB, free: 1.305 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002221/0.4104, allocations: 143.1 kB / 0.4956 GB, free: 1.156 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007892/0.4112, allocations: 0.4963 MB / 0.4961 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4112, allocations: 3.938 kB / 0.4961 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.4116, allocations: 327.2 kB / 0.4964 GB, free: 324 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.4118, allocations: 12.42 kB / 0.4964 GB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.4129, allocations: 0.5409 MB / 0.4969 GB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.4134, allocations: 0.8447 MB / 0.4978 GB, free: 14.87 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4134, allocations: 4 kB / 0.4978 GB, free: 14.86 MB / 378.7 MB Notification: Performance of Templates: time 0.009001/0.4224, allocations: 4.995 MB / 0.5026 GB, free: 9.945 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches