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.001294/0.001295, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001233/0.001233, allocations: 189.4 kB / 18 MB, free: 5.098 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2406, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004268/0.2449, allocations: 2.707 MB / 402.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.2462, allocations: 0.6661 MB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2463, allocations: 4 kB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.2466, allocations: 47.56 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.2467, allocations: 79.27 kB / 403.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.247, allocations: 91.8 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.2475, allocations: 362.5 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2477, allocations: 88.72 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.2479, allocations: 139.5 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.2482, allocations: 163.4 kB / 404.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.246e-05/0.2482, allocations: 28 kB / 404.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.2483, allocations: 32 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.27e-05/0.2484, allocations: 71.75 kB / 404.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2486, allocations: 143.3 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.249, allocations: 345.7 kB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.249, allocations: 0 / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.249, allocations: 4 kB / 405.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.249, allocations: 0 / 405.2 MB, free: 3.852 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.001538/0.2506, allocations: 0.6429 MB / 405.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.2506, allocations: 8.031 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.2507, allocations: 62.72 kB / 405.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.2508, allocations: 32.75 kB / 405.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.2512, allocations: 264.8 kB / 406.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.2512, allocations: 16.81 kB / 406.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.2513, allocations: 20.38 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006722/0.2519, allocations: 310.6 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.252, allocations: 0 / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.252, allocations: 12 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.252, allocations: 4 kB / 406.5 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007812/0.2528, allocations: 265.6 kB / 406.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.2545, allocations: 1.058 MB / 407.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.2564, allocations: 438.3 kB / 408.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.2568, allocations: 148.7 kB / 408.4 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.2569, allocations: 4 kB / 408.4 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.2569, allocations: 42.48 kB / 408.5 MB, free: 348 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.2569, allocations: 0 / 408.5 MB, free: 348 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004878/0.2618, allocations: 1.024 MB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.2619, allocations: 59.41 kB / 409.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.2621, allocations: 216.2 kB / 409.8 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.2621, allocations: 29.7 kB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.2623, allocations: 152.3 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.2623, allocations: 55.53 kB / 410 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.929e-05/0.2624, allocations: 33.69 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2626, allocations: 338.8 kB / 410.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.2629, allocations: 103.9 kB / 410.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.2633, allocations: 125.6 kB / 410.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.264, allocations: 231.9 kB / 410.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.264, allocations: 3.938 kB / 410.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002805/0.2668, allocations: 0.6307 MB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.2668, allocations: 8 kB / 411.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2669, allocations: 4 kB / 411.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007645/0.2676, allocations: 216.6 kB / 411.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.2678, allocations: 35.98 kB / 411.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006874/0.2747, allocations: 2.739 MB / 414.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/0.275, allocations: 35.97 kB / 414.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.275, allocations: 7.984 kB / 414.5 MB, free: 10.09 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.0001791/0.2752, allocations: 133.7 kB / 414.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.2753, allocations: 23.91 kB / 414.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.2753, allocations: 21.52 kB / 414.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2754, allocations: 8 kB / 414.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2754, allocations: 4 kB / 414.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2754, allocations: 0 / 414.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.2758, allocations: 329.3 kB / 415 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2758, allocations: 4 kB / 415 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.276, allocations: 23.98 kB / 415 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006668/0.2766, allocations: 224.7 kB / 415.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.2767, allocations: 3.984 kB / 415.2 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006752/0.2834, allocations: 2.735 MB / 418 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2835, allocations: 0 / 418 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.2867, allocations: 0.8496 MB / 418.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.622e-05/0.2868, allocations: 104.9 kB / 418.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.2868, allocations: 4 kB / 418.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.2871, allocations: 36.03 kB / 419 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.2871, allocations: 7.984 kB / 419 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.2872, allocations: 4 kB / 419 MB, free: 5.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.2873, allocations: 157.8 kB / 419.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2873, allocations: 3.938 kB / 419.1 MB, free: 5.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004436/0.2878, allocations: 79.89 kB / 419.2 MB, free: 5.109 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.003518/0.2913, allocations: 1.389 MB / 420.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.2929, allocations: 442.5 kB / 421 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.2929, allocations: 4 kB / 421 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.2939, allocations: 326.5 kB / 421.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.2943, allocations: 46.8 kB / 421.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008627/0.303, allocations: 3.351 MB / 424.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.3034, allocations: 0.7476 MB / 425.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.313e-05/0.3035, allocations: 5.562 kB / 425.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3036, allocations: 71.34 kB / 425.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3036, allocations: 0 / 425.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04577/0.3494, allocations: 7.319 MB / 432.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.11, allocations: 11.92 kB / 432.9 MB, free: 7.406 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