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.001117/0.001117, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2808, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003708/0.2845, allocations: 2.532 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.2859, allocations: 0.6894 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2861, allocations: 4 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.2862, allocations: 39.64 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.2864, allocations: 67.34 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.2868, allocations: 103.8 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.2871, allocations: 278.7 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.2873, allocations: 88.33 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.2876, allocations: 111.6 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.2878, allocations: 115.5 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/0.2879, allocations: 24 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.288, allocations: 39.98 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.45e-05/0.2881, allocations: 55.83 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.2882, allocations: 123.4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.2885, allocations: 288.7 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2886, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2886, allocations: 3.938 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.2886, 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.0008786/0.2895, allocations: 0.5379 MB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.2895, allocations: 16.03 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.962e-05/0.2896, allocations: 50.73 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.2898, allocations: 40.58 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000353/0.2901, allocations: 243.9 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2902, allocations: 16.81 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.2902, allocations: 20.38 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.2906, allocations: 195.4 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2906, allocations: 4 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.2906, allocations: 4 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2907, allocations: 4 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.291, 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.001381/0.2924, allocations: 0.9373 MB / 415.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.2927, allocations: 149.5 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.2929, allocations: 96.91 kB / 415.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.2929, allocations: 4 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.2929, allocations: 38.55 kB / 415.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.2929, allocations: 3.938 kB / 415.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001246/0.2942, allocations: 423.3 kB / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2942, allocations: 55.41 kB / 416.3 MB, free: 9.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2944, allocations: 176.9 kB / 416.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.2945, allocations: 33.7 kB / 416.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.2945, allocations: 152.1 kB / 416.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.2946, allocations: 59.11 kB / 416.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.2947, allocations: 37.7 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2948, allocations: 330.8 kB / 417 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.2949, allocations: 47.97 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.295, allocations: 72.69 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.2953, allocations: 132.1 kB / 417.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2953, allocations: 3.938 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004239/0.2957, allocations: 218.2 kB / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.2958, allocations: 4 kB / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2958, allocations: 3.938 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.2972, allocations: 220.6 kB / 417.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.2974, allocations: 31.97 kB / 417.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000447/0.2978, allocations: 0.6147 MB / 418.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.298, allocations: 15.97 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.298, allocations: 4 kB / 418.4 MB, free: 7.543 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.0001201/0.2981, allocations: 133.7 kB / 418.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.463e-05/0.2982, allocations: 19.8 kB / 418.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004369/0.2986, allocations: 234.4 kB / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2986, allocations: 0 / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2986, allocations: 0 / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2987, allocations: 4 kB / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008528/0.2995, allocations: 0.5974 MB / 419.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.2995, allocations: 3.938 kB / 419.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.2997, allocations: 31.92 kB / 419.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.3008, allocations: 204.7 kB / 419.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.3008, allocations: 0 / 419.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004213/0.3013, allocations: 0.6225 MB / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3013, allocations: 80 / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000798/0.3021, allocations: 427.6 kB / 420.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.3022, allocations: 104.9 kB / 420.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.3022, allocations: 0 / 420.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.3024, allocations: 8 kB / 420.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.3024, allocations: 16.05 kB / 420.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.3024, allocations: 8 kB / 420.8 MB, free: 5.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.3025, allocations: 136 kB / 420.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3026, allocations: 0 / 420.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.3029, allocations: 55.84 kB / 421 MB, free: 4.816 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.001175/0.3041, allocations: 0.9624 MB / 421.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004138/0.3045, allocations: 143.8 kB / 422.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3045, allocations: 4.125 kB / 422.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.3047, allocations: 87.98 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.0003476/0.3051, allocations: 35.91 kB / 422.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.3081, allocations: 2.336 MB / 424.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3084, allocations: 0.7397 MB / 425.3 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.278e-05/0.3085, allocations: 13.55 kB / 425.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.3086, allocations: 59.42 kB / 425.3 MB, free: 292 kB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3086, allocations: 0 / 425.3 MB, free: 292 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3361, allocations: 4.884 MB / 430.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.65, allocations: 10.42 kB / 430.2 MB, free: 11.55 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