Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 104.7 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.16/2.16, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3546, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004838/0.3595, allocations: 2.512 MB / 402.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3609, allocations: 0.6544 MB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.3612, allocations: 4 kB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.3614, allocations: 39.58 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.3616, allocations: 71.33 kB / 403.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.3621, allocations: 87.83 kB / 403.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006045/0.3627, allocations: 274.7 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.363, allocations: 88.34 kB / 404 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.3634, allocations: 107.6 kB / 404.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003773/0.3638, allocations: 123.5 kB / 404.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.449e-05/0.3638, allocations: 20 kB / 404.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.364, allocations: 36 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.041e-05/0.3641, allocations: 51.83 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.3643, allocations: 119.4 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.3647, allocations: 284.8 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3648, allocations: 3.984 kB / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3648, allocations: 0 / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.3648, allocations: 0 / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00114/0.3659, allocations: 0.5302 MB / 405.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.366, allocations: 12.03 kB / 405.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.644e-05/0.3661, allocations: 54.67 kB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.223e-05/0.3662, allocations: 28.66 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.3666, allocations: 239.8 kB / 405.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3667, allocations: 12.81 kB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.3667, allocations: 20.38 kB / 405.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.3673, allocations: 195.4 kB / 405.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.3673, allocations: 0 / 405.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.3673, allocations: 8 kB / 405.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.3674, allocations: 8 kB / 405.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.3678, allocations: 153.6 kB / 405.9 MB, free: 3.02 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.3698, allocations: 0.9373 MB / 406.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.3702, allocations: 150.6 kB / 407 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.3705, allocations: 92.81 kB / 407.1 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.3705, allocations: 12 kB / 407.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3706, allocations: 34.81 kB / 407.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.723e-06/0.3706, allocations: 0 / 407.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001588/0.3722, allocations: 417.7 kB / 407.6 MB, free: 1.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.3723, allocations: 59.39 kB / 407.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.3725, allocations: 179.2 kB / 407.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.3725, allocations: 29.64 kB / 407.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3727, allocations: 148.1 kB / 408 MB, free: 0.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.3727, allocations: 59.09 kB / 408 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-05/0.3728, allocations: 37.7 kB / 408.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.373, allocations: 330.8 kB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3732, allocations: 51.97 kB / 408.4 MB, free: 316 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.3733, allocations: 75.38 kB / 408.5 MB, free: 236 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.3737, allocations: 132.7 kB / 408.6 MB, free: 100 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3737, allocations: 0 / 408.6 MB, free: 100 kB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005373/0.3742, allocations: 214.2 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.3743, allocations: 8 kB / 408.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3743, allocations: 3.938 kB / 408.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.3759, allocations: 216.6 kB / 409.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3761, allocations: 31.92 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006424/0.3768, allocations: 0.6147 MB / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.377, allocations: 19.94 kB / 409.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.377, allocations: 4 kB / 409.7 MB, free: 14.96 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002007/0.3772, allocations: 137.8 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.3773, allocations: 15.81 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006171/0.3779, allocations: 226.8 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3779, allocations: 4 kB / 410.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3779, allocations: 4 kB / 410.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3779, allocations: 0 / 410.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.3792, allocations: 0.5897 MB / 410.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.3792, allocations: 7.938 kB / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.3794, allocations: 31.91 kB / 410.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.3807, allocations: 200.7 kB / 410.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.3807, allocations: 7.984 kB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006786/0.3814, allocations: 0.6225 MB / 411.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3814, allocations: 96 / 411.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.3825, allocations: 432.6 kB / 412 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.669e-05/0.3826, allocations: 92.89 kB / 412.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.3827, allocations: 8 kB / 412.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3829, allocations: 16.05 kB / 412.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.3829, allocations: 15.92 kB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.383, allocations: 4 kB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.3831, allocations: 132.3 kB / 412.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3831, allocations: 4 kB / 412.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004378/0.3836, allocations: 51.84 kB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/0.3849, allocations: 0.9598 MB / 413.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004832/0.3854, allocations: 158.2 kB / 413.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3855, allocations: 0 / 413.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.3857, allocations: 94.95 kB / 413.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.3862, allocations: 31.98 kB / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/0.39, allocations: 2.323 MB / 415.9 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3904, allocations: 0.7358 MB / 416.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.665e-05/0.3905, allocations: 13.55 kB / 416.6 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3906, allocations: 63.41 kB / 416.7 MB, free: 7.703 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3907, allocations: 0 / 416.7 MB, free: 7.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.4161, allocations: 4.839 MB / 421.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/18.39, allocations: 6.688 kB / 421.5 MB, free: 3.016 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Capacitor1.v,HeatCapacitor1.T Variables in the result:Capacitor1.C,Capacitor1.i,Capacitor1.n.i,Capacitor1.n.v,Capacitor1.p.i,Capacitor1.p.v,Capacitor1.v,G.p.i,G.p.v,HeatCapacitor1.C,HeatCapacitor1.T,HeatCapacitor1.der_T,HeatCapacitor1.port.Q_flow,HeatCapacitor1.port.T,HeatingDiode1.EG,HeatingDiode1.Ids,HeatingDiode1.LossPower,HeatingDiode1.Maxexp,HeatingDiode1.N,HeatingDiode1.R,HeatingDiode1.T,HeatingDiode1.TNOM,HeatingDiode1.T_heatPort,HeatingDiode1.Vt,HeatingDiode1.XTI,HeatingDiode1.heatPort.Q_flow,HeatingDiode1.heatPort.T,HeatingDiode1.i,HeatingDiode1.id,HeatingDiode1.n.i,HeatingDiode1.n.v,HeatingDiode1.p.i,HeatingDiode1.p.v,HeatingDiode1.useHeatPort,HeatingDiode1.useTemperatureDependency,HeatingDiode1.v,HeatingDiode1.vt_t,R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.useHeatPort,R.v,SineVoltage1.V,SineVoltage1.f,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.f,SineVoltage1.signalSource.offset,SineVoltage1.signalSource.phase,SineVoltage1.signalSource.startTime,SineVoltage1.signalSource.y,SineVoltage1.startTime,SineVoltage1.v,ThermalConductor1.G,ThermalConductor1.Q_flow,ThermalConductor1.dT,ThermalConductor1.port_a.Q_flow,ThermalConductor1.port_a.T,ThermalConductor1.port_b.Q_flow,ThermalConductor1.port_b.T,der(Capacitor1.v),der(HeatCapacitor1.T),time