Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 204.6 kB / 18.74 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.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2429, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003814/0.2468, allocations: 2.725 MB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2481, allocations: 0.7051 MB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.2483, allocations: 7.938 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.2485, allocations: 39.58 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.2488, allocations: 87.2 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.2492, allocations: 107.8 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004054/0.2496, allocations: 362.6 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.2498, allocations: 84.7 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002964/0.2501, allocations: 139.5 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.2503, allocations: 171.3 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.2504, allocations: 32 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.913e-05/0.2505, allocations: 39.94 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.2506, allocations: 63.81 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2507, allocations: 147.3 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.2511, allocations: 352.5 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2511, allocations: 0 / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2511, allocations: 0 / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.2511, allocations: 4 kB / 413.8 MB, free: 12.49 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.001539/0.2527, allocations: 0.6393 MB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.2527, allocations: 8.031 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.819e-05/0.2528, allocations: 54.73 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.253, allocations: 44.55 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2534, allocations: 264.7 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2534, allocations: 16.75 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.2535, allocations: 24.38 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.2541, allocations: 298.7 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2542, allocations: 0 / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.2542, allocations: 15.98 kB / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.2542, allocations: 8 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007595/0.255, allocations: 265.5 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.2568, allocations: 1.054 MB / 416.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.2588, allocations: 438.3 kB / 416.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003972/0.2592, allocations: 152.8 kB / 417 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.2593, allocations: 7.969 kB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.2593, allocations: 34.56 kB / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.244e-06/0.2593, allocations: 0 / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.005107/0.2644, allocations: 1.022 MB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.2645, allocations: 55.41 kB / 418.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.2647, allocations: 221 kB / 418.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.2648, allocations: 29.7 kB / 418.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2649, allocations: 156.1 kB / 418.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.265, allocations: 59.23 kB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.497e-05/0.2651, allocations: 37.64 kB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2652, allocations: 330.8 kB / 419 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.2656, allocations: 107.9 kB / 419.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.2659, allocations: 124.5 kB / 419.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006713/0.2666, allocations: 229.5 kB / 419.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.2666, allocations: 3.938 kB / 419.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003034/0.2697, allocations: 0.6374 MB / 420.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2697, allocations: 8 kB / 420.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2697, allocations: 0 / 420.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007371/0.2705, allocations: 220.7 kB / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.2707, allocations: 35.91 kB / 420.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006956/0.2776, allocations: 2.731 MB / 423.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/0.278, allocations: 43.86 kB / 423.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.278, allocations: 7.984 kB / 423.1 MB, free: 2.734 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 (16): * Single equations (assignments): 15 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.2782, allocations: 133.8 kB / 423.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.965e-05/0.2783, allocations: 19.72 kB / 423.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.544e-05/0.2784, allocations: 25.83 kB / 423.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2784, allocations: 4 kB / 423.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2784, allocations: 0 / 423.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2784, allocations: 0 / 423.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004085/0.2788, allocations: 337.2 kB / 423.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2788, allocations: 0 / 423.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.279, allocations: 31.92 kB / 423.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006302/0.2796, allocations: 216.6 kB / 423.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.2797, allocations: 8 kB / 423.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006854/0.2865, allocations: 2.739 MB / 426.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.2866, allocations: 8.016 kB / 426.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/0.29, allocations: 0.8355 MB / 427.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.2901, allocations: 96.89 kB / 427.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.2902, allocations: 4 kB / 427.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.2905, allocations: 28.06 kB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.2906, allocations: 24.03 kB / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.2906, allocations: 0 / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.2908, allocations: 164.5 kB / 427.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2908, allocations: 0 / 427.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005044/0.2913, allocations: 83.75 kB / 427.8 MB, free: 13.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * 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 (12): * Single equations (assignments): 11 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003653/0.2949, allocations: 1.384 MB / 429.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.2965, allocations: 458 kB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2966, allocations: 0 / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.2977, allocations: 326.6 kB / 430 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.2981, allocations: 36.58 kB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008715/0.3069, allocations: 3.349 MB / 433.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.3072, allocations: 0.7437 MB / 434.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.656e-05/0.3073, allocations: 17.53 kB / 434.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.3074, allocations: 71.41 kB / 434.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3074, allocations: 0 / 434.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02983/0.3373, allocations: 7.532 MB / 441.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.89, allocations: 11.92 kB / 441.7 MB, free: 15.84 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,CL.v Variables in the result:CL.C,CL.i,CL.n.i,CL.n.v,CL.p.i,CL.p.v,CL.v,RL.LossPower,RL.R,RL.R_actual,RL.T,RL.T_heatPort,RL.T_ref,RL.alpha,RL.i,RL.n.i,RL.n.v,RL.p.i,RL.p.v,RL.useHeatPort,RL.v,Rv.LossPower,Rv.R,Rv.R_actual,Rv.T,Rv.T_heatPort,Rv.T_ref,Rv.alpha,Rv.i,Rv.n.i,Rv.n.v,Rv.p.i,Rv.p.v,Rv.useHeatPort,Rv.v,der(CL.v),ground.p.i,ground.p.v,sineVoltage.V,sineVoltage.f,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.continuous,sineVoltage.signalSource.f,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,time,zDiode.Bv,zDiode.Ibv,zDiode.Ids,zDiode.LossPower,zDiode.Maxexp,zDiode.Nbv,zDiode.R,zDiode.T,zDiode.T_heatPort,zDiode.Vt,zDiode.i,zDiode.n.i,zDiode.n.v,zDiode.p.i,zDiode.p.v,zDiode.useHeatPort,zDiode.v,zDiode1.Bv,zDiode1.Ibv,zDiode1.Ids,zDiode1.LossPower,zDiode1.Maxexp,zDiode1.Nbv,zDiode1.R,zDiode1.T,zDiode1.T_heatPort,zDiode1.Vt,zDiode1.i,zDiode1.n.i,zDiode1.n.v,zDiode1.p.i,zDiode1.p.v,zDiode1.useHeatPort,zDiode1.v