Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",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.001573/0.001579, allocations: 106 kB / 17.06 MB, free: 6.016 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.001925/0.001925, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2923, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004323/0.2966, allocations: 2.699 MB / 402.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2982, allocations: 0.6661 MB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003001/0.2986, allocations: 4 kB / 403.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.2988, allocations: 43.58 kB / 403.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.2992, allocations: 75.27 kB / 403.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.2996, allocations: 103.8 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005767/0.3002, allocations: 354.5 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002727/0.3005, allocations: 88.69 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.3008, allocations: 147.5 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.3011, allocations: 159.4 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.443e-05/0.3011, allocations: 32 kB / 404.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.3012, allocations: 32 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.375e-05/0.3013, allocations: 71.73 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.3014, allocations: 151.2 kB / 404.8 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003841/0.3018, allocations: 336.6 kB / 405.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3019, allocations: 0 / 405.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3019, allocations: 0 / 405.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.3019, allocations: 0 / 405.2 MB, free: 3.848 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.001666/0.3035, allocations: 0.6539 MB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.3036, allocations: 12.03 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.3037, allocations: 50.73 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.791e-05/0.3038, allocations: 32.56 kB / 405.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.3043, allocations: 260.7 kB / 406.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.3043, allocations: 16.81 kB / 406.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.59e-05/0.3044, allocations: 20.31 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006688/0.3051, allocations: 306.7 kB / 406.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3051, allocations: 0 / 406.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.3051, allocations: 12 kB / 406.5 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.3052, allocations: 4 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007831/0.3059, allocations: 265.6 kB / 406.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.3077, allocations: 1.069 MB / 407.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.3097, allocations: 434.3 kB / 408.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004143/0.3101, allocations: 144.7 kB / 408.4 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.3101, allocations: 4 kB / 408.4 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3102, allocations: 38.56 kB / 408.5 MB, free: 352 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.3102, allocations: 0 / 408.5 MB, free: 352 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004925/0.3151, allocations: 1.021 MB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.3152, allocations: 51.41 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.3154, allocations: 216.2 kB / 409.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3154, allocations: 25.7 kB / 409.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3156, allocations: 172 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.12e-05/0.3156, allocations: 47.3 kB / 410 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.3157, allocations: 33.7 kB / 410 MB, free: 14.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3159, allocations: 330.8 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003649/0.3163, allocations: 103.9 kB / 410.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003918/0.3167, allocations: 133.5 kB / 410.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006701/0.3173, allocations: 232 kB / 410.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3173, allocations: 3.938 kB / 410.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00279/0.3201, allocations: 0.6267 MB / 411.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3202, allocations: 8 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3202, allocations: 0 / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007497/0.321, allocations: 220.7 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3211, allocations: 31.97 kB / 411.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006855/0.328, allocations: 2.747 MB / 414.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.3283, allocations: 39.84 kB / 414.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.3284, allocations: 4 kB / 414.5 MB, free: 10.1 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.0001578/0.3286, allocations: 145.8 kB / 414.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.3286, allocations: 15.81 kB / 414.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.598e-05/0.3287, allocations: 21.53 kB / 414.6 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3287, allocations: 4 kB / 414.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.3287, allocations: 0 / 414.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3287, allocations: 3.984 kB / 414.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000388/0.3291, allocations: 329.2 kB / 415 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3291, allocations: 0 / 415 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.3293, allocations: 35.97 kB / 415 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006472/0.33, allocations: 212.7 kB / 415.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.33, allocations: 7.984 kB / 415.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006706/0.3367, allocations: 2.731 MB / 418 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3367, allocations: 0 / 418 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003242/0.34, allocations: 0.8434 MB / 418.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.313e-05/0.3401, allocations: 100.8 kB / 418.9 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.3402, allocations: 8 kB / 418.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.3405, allocations: 27.97 kB / 418.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.3405, allocations: 11.98 kB / 418.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.3406, allocations: 7.984 kB / 418.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.3408, allocations: 165.9 kB / 419.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3408, allocations: 0 / 419.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004936/0.3413, allocations: 75.84 kB / 419.2 MB, free: 5.129 MB / 334.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.003544/0.3448, allocations: 1.387 MB / 420.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.3464, allocations: 450.4 kB / 421 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3464, allocations: 0 / 421 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.3475, allocations: 330.5 kB / 421.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.3479, allocations: 39.64 kB / 421.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008503/0.3564, allocations: 3.351 MB / 424.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.3568, allocations: 0.7398 MB / 425.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.27e-05/0.3569, allocations: 17.55 kB / 425.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.98e-05/0.357, allocations: 71.34 kB / 425.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.357, allocations: 0 / 425.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.3858, allocations: 7.492 MB / 433 MB, free: 7.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.4/19.79, allocations: 7.938 kB / 433.1 MB, free: 7.254 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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