Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.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.QuasiStationary.SinglePhase.Examples.SeriesBode,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma|abs_y|dB_y|arg_y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma|abs_y|dB_y|arg_y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 178 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008133/0.0008135, allocations: 86.27 kB / 262.4 MB, free: 1.695 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.076e-05/2.079e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09807, allocations: 47.59 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3162/0.4144, allocations: 82.35 MB / 445.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.4146, allocations: 77.95 kB / 445.5 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04252/0.4572, allocations: 17.81 MB / 463.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4572, allocations: 0 / 463.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.4572, allocations: 8 kB / 463.3 MB, free: 15.04 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002272/0.4595, allocations: 0.8371 MB / 464.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.4596, allocations: 12.03 kB / 464.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/0.4649, allocations: 445.4 kB / 464.6 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007842/0.4657, allocations: 369.8 kB / 465 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.978e-05/0.4658, allocations: 28 kB / 465 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.4659, allocations: 36 kB / 465 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00206/0.468, allocations: 0.7754 MB / 465.8 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.4697, allocations: 0.6627 MB / 466.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.4698, allocations: 0 / 466.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.759e-05/0.4699, allocations: 0 / 466.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.4699, allocations: 20 kB / 466.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005155/0.4751, allocations: 2.606 MB / 469.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.477, allocations: 1.885 MB / 471 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.4775, allocations: 181.5 kB / 471.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001395/0.4776, allocations: 92.97 kB / 471.2 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.4777, allocations: 42.31 kB / 471.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.847e-06/0.4777, allocations: 0 / 471.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001462/0.4792, allocations: 466.5 kB / 471.7 MB, free: 7.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.4792, allocations: 81.55 kB / 471.8 MB, free: 7.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/0.4797, allocations: 281.1 kB / 472.1 MB, free: 7.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.4797, allocations: 25.7 kB / 472.1 MB, free: 7.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.48, allocations: 297.8 kB / 472.4 MB, free: 7.035 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.4802, allocations: 165.6 kB / 472.6 MB, free: 6.891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.4802, allocations: 0 / 472.6 MB, free: 6.891 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4804, allocations: 338.1 kB / 472.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.4809, allocations: 188 kB / 473.1 MB, free: 6.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005936/0.4815, allocations: 392.4 kB / 473.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.4826, allocations: 329.4 kB / 473.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4826, allocations: 0 / 473.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00228/0.4849, allocations: 0.7348 MB / 474.5 MB, free: 5.305 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001429/0.4863, allocations: 2.44 MB / 477 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.4864, allocations: 4 kB / 477 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/0.4868, allocations: 60.14 kB / 477 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000936/0.4877, allocations: 147.8 kB / 477.2 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.4901, allocations: 1.529 MB / 478.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007964/0.4909, allocations: 63.36 kB / 478.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/0.491, allocations: 31.98 kB / 478.8 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.491, allocations: 4 kB / 478.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001642/0.4927, allocations: 0.6686 MB / 479.5 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.4927, allocations: 4 kB / 479.5 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001916/0.4929, allocations: 52.97 kB / 479.5 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006892/0.4936, allocations: 143.7 kB / 479.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.4951, allocations: 1.456 MB / 481.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.4956, allocations: 51.58 kB / 481.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.094e-05/0.4957, allocations: 31.98 kB / 481.2 MB, free: 14.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 68 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.4959, allocations: 116.8 kB / 481.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.899e-05/0.496, allocations: 35.58 kB / 481.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.4973, allocations: 0.524 MB / 481.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4973, allocations: 8 kB / 481.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.4974, allocations: 0 / 481.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.4974, allocations: 7.969 kB / 481.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.4996, allocations: 1.122 MB / 483 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.4996, allocations: 3.938 kB / 483 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004651/0.5, allocations: 87.89 kB / 483.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/0.5003, allocations: 49.02 kB / 483.1 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.5003, allocations: 11.98 kB / 483.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/0.5019, allocations: 1.509 MB / 484.7 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5019, allocations: 3.953 kB / 484.7 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.5034, allocations: 0.7803 MB / 485.4 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.5036, allocations: 148.6 kB / 485.6 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.523e-05/0.5037, allocations: 3.984 kB / 485.6 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.504, allocations: 19.98 kB / 485.6 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.5041, allocations: 32.39 kB / 485.6 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.5042, allocations: 12.05 kB / 485.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002485/0.5045, allocations: 204.5 kB / 485.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5045, allocations: 0 / 485.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001298/0.5058, allocations: 282.8 kB / 486.1 MB, free: 9.074 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 43 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003316/0.5061, allocations: 143.1 kB / 486.3 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.508, allocations: 1.003 MB / 487.3 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.508, allocations: 7.938 kB / 487.3 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.5084, allocations: 315.3 kB / 487.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.5088, allocations: 25.08 kB / 487.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.5123, allocations: 1.204 MB / 488.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.5128, allocations: 0.853 MB / 489.7 MB, free: 5.445 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009937/0.5138, allocations: 0.5879 MB / 490.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.5139, allocations: 39.41 kB / 490.3 MB, free: 4.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.492e-06/0.5139, allocations: 0 / 490.3 MB, free: 4.82 MB / 362.7 MB Notification: Performance of Templates: time 0.01054/0.5245, allocations: 5.102 MB / 495.4 MB, free: 15.72 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesBode/SeriesBode.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inductor.pin_p.reference.gamma,abs_y,dB_y,arg_y Variables in the result:abs_y,arg_y,bode.complexToPolar.useConjugateInput,bode.division.useConjugateInput1,bode.division.useConjugateInput2,bode.gain.k,bode.limiter.homotopyType,bode.limiter.limitsAtInit,bode.limiter.strict,bode.limiter.uMax,bode.limiter.uMin,complexConst.k.im,complexConst.k.re,currentSensor.pin_p.reference.gamma,dB_y,frequencySweep.duration,frequencySweep.startTime,frequencySweep.wMax,frequencySweep.wMin,inductor.L,inductor.pin_p.reference.gamma,resistor.R_ref,resistor.T,resistor.T_ref,resistor.alpha_ref,time