Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001325, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2857, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004342/0.2901, allocations: 2.538 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.2917, allocations: 0.6895 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.2919, allocations: 0 / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.2921, allocations: 39.64 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.2923, allocations: 71.28 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.2927, allocations: 91.83 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.2931, allocations: 290.6 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.2933, allocations: 80.36 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.2935, allocations: 111.6 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.2938, allocations: 115.5 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.2938, allocations: 24 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.294, allocations: 51.97 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.968e-05/0.294, allocations: 51.78 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.2942, allocations: 127.4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004678/0.2947, allocations: 280.7 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2947, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2947, allocations: 3.938 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.2947, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.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.001275/0.296, allocations: 0.5496 MB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.2961, allocations: 8.031 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.418e-05/0.2962, allocations: 54.73 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2964, allocations: 32.64 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004981/0.2969, allocations: 240 kB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.297, allocations: 12.81 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.297, allocations: 24.38 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.2976, allocations: 195.3 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.2976, allocations: 0 / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.2977, allocations: 12 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2977, allocations: 4 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004829/0.2982, allocations: 149.7 kB / 414.6 MB, free: 11.61 MB / 334.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.002014/0.3002, allocations: 0.9295 MB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/0.3007, allocations: 154.5 kB / 415.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.301, allocations: 104.8 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.3011, allocations: 0 / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3011, allocations: 30.56 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.094e-06/0.3011, allocations: 0 / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001872/0.303, allocations: 423.3 kB / 416.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.3031, allocations: 59.39 kB / 416.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.3034, allocations: 176.9 kB / 416.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.503e-05/0.3034, allocations: 33.7 kB / 416.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3035, allocations: 148.1 kB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.3036, allocations: 59.11 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3037, allocations: 37.7 kB / 416.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3039, allocations: 330.8 kB / 417 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.3041, allocations: 47.97 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.3043, allocations: 78.75 kB / 417.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.3047, allocations: 124.1 kB / 417.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3048, allocations: 0 / 417.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000681/0.3055, allocations: 222.2 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.3055, allocations: 8.031 kB / 417.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3055, allocations: 3.938 kB / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.3076, allocations: 224.6 kB / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.3079, allocations: 35.91 kB / 417.7 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007362/0.3086, allocations: 0.6147 MB / 418.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.3088, allocations: 11.94 kB / 418.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.3089, allocations: 4 kB / 418.4 MB, free: 7.547 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.0001972/0.3091, allocations: 141.2 kB / 418.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.3092, allocations: 15.81 kB / 418.5 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007224/0.3099, allocations: 238.5 kB / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.3099, allocations: 0 / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3099, allocations: 4 kB / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3099, allocations: 0 / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.3113, allocations: 0.5999 MB / 419.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.3114, allocations: 3.938 kB / 419.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.3116, allocations: 32.02 kB / 419.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.3133, allocations: 200.6 kB / 419.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.3134, allocations: 8 kB / 419.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007004/0.3141, allocations: 0.6187 MB / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3141, allocations: 0 / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.3154, allocations: 424.8 kB / 420.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.787e-05/0.3155, allocations: 96.88 kB / 420.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.3156, allocations: 8 kB / 420.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.3158, allocations: 12.06 kB / 420.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.3159, allocations: 7.984 kB / 420.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.3159, allocations: 4 kB / 420.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000161/0.3161, allocations: 136.1 kB / 420.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3161, allocations: 0 / 420.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.3166, allocations: 59.84 kB / 421 MB, free: 4.82 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.00162/0.3183, allocations: 0.9662 MB / 421.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005749/0.3189, allocations: 147.9 kB / 422.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3189, allocations: 0 / 422.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.3192, allocations: 88.05 kB / 422.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.3198, allocations: 31.92 kB / 422.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/0.324, allocations: 2.335 MB / 424.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.3245, allocations: 0.7436 MB / 425.3 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.3246, allocations: 9.547 kB / 425.3 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3248, allocations: 59.42 kB / 425.3 MB, free: 300 kB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3248, allocations: 0 / 425.3 MB, free: 300 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.3498, allocations: 4.883 MB / 430.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.78, allocations: 8.047 kB / 430.2 MB, free: 11.56 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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