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.00108/0.00108, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001106/0.001106, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.422/1.422, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 51.98 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1373, allocations: 49.44 MB / 349.5 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005402/0.1428, allocations: 2.737 MB / 352.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.1449, allocations: 0.6622 MB / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004988/0.1454, allocations: 7.938 kB / 352.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.1458, allocations: 35.75 kB / 353 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003325/0.1462, allocations: 63.41 kB / 353 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.1466, allocations: 91.89 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005695/0.1472, allocations: 338.6 kB / 353.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002426/0.1475, allocations: 77.12 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003142/0.1478, allocations: 127.5 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.148, allocations: 155.3 kB / 353.8 MB, free: 476 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.783e-05/0.1481, allocations: 16 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.1481, allocations: 24 kB / 353.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.501e-05/0.1482, allocations: 59.75 kB / 353.9 MB, free: 376 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.1484, allocations: 139.3 kB / 354 MB, free: 236 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.1487, allocations: 319.2 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1487, allocations: 0 / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1487, allocations: 0 / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1488, allocations: 3.938 kB / 354.3 MB, free: 15.91 MB / 302.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.001574/0.1503, allocations: 0.6431 MB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.1504, allocations: 12.03 kB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.494e-05/0.1505, allocations: 58.67 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.137e-05/0.1506, allocations: 28.66 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.1509, allocations: 256.7 kB / 355.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.1509, allocations: 16.8 kB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.151, allocations: 20.38 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000698/0.1517, allocations: 302.7 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1517, allocations: 0 / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.1517, allocations: 12 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1518, allocations: 4 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007811/0.1525, allocations: 269.5 kB / 355.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.1542, allocations: 1.066 MB / 357 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.1562, allocations: 442.2 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003812/0.1566, allocations: 152.8 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.1566, allocations: 0 / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.1567, allocations: 30.56 kB / 357.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.1567, allocations: 0 / 357.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005248/0.1619, allocations: 1.026 MB / 358.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.162, allocations: 55.41 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1623, allocations: 212.2 kB / 358.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.1624, allocations: 29.7 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1625, allocations: 156.1 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.1627, allocations: 59.19 kB / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.439e-05/0.1628, allocations: 33.7 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002615/0.1631, allocations: 334.8 kB / 359.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.1634, allocations: 99.94 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/0.1638, allocations: 129.6 kB / 359.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006845/0.1645, allocations: 229.8 kB / 359.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1645, allocations: 3.938 kB / 360 MB, free: 9.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002986/0.1675, allocations: 0.633 MB / 360.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.1675, allocations: 4 kB / 360.6 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.1675, allocations: 4 kB / 360.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007977/0.1683, allocations: 212.7 kB / 360.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.1685, allocations: 43.97 kB / 360.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007088/0.1756, allocations: 2.493 MB / 363.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.176, allocations: 39.84 kB / 363.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.176, allocations: 8.062 kB / 363.4 MB, free: 6.414 MB / 302.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.0002197/0.1763, allocations: 129.8 kB / 363.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.373e-05/0.1763, allocations: 27.66 kB / 363.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.735e-05/0.1764, allocations: 25.52 kB / 363.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1764, allocations: 4 kB / 363.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1764, allocations: 0 / 363.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1764, allocations: 0 / 363.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005413/0.177, allocations: 317.5 kB / 363.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.177, allocations: 7.938 kB / 363.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.1772, allocations: 31.97 kB / 363.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006646/0.1778, allocations: 220.6 kB / 364.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.1779, allocations: 4 kB / 364.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006808/0.1847, allocations: 2.482 MB / 366.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1847, allocations: 7.875 kB / 366.6 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.188, allocations: 0.8317 MB / 367.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.679e-05/0.1882, allocations: 100.9 kB / 367.6 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/0.1882, allocations: 11.88 kB / 367.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.1885, allocations: 36.03 kB / 367.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.1886, allocations: 7.984 kB / 367.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1886, allocations: 7.938 kB / 367.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.1888, allocations: 161.8 kB / 367.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1888, allocations: 0 / 367.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005127/0.1893, allocations: 75.84 kB / 367.8 MB, free: 1.711 MB / 302.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.003832/0.1931, allocations: 1.391 MB / 369.2 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1933/0.3864, allocations: 439.3 kB / 369.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.3865, allocations: 0.75 kB / 369.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.3878, allocations: 326.6 kB / 370 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.3883, allocations: 34.17 kB / 370 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009286/0.3976, allocations: 3.422 MB / 373.4 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.3979, allocations: 0.74 MB / 374.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.398, allocations: 18.83 kB / 374.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3981, allocations: 74.84 kB / 374.3 MB, free: 23.69 MB / 302.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3981, allocations: 0 / 374.3 MB, free: 23.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.4192, allocations: 6.815 MB / 381.1 MB, free: 22.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.4194, allocations: 239.9 kB / 381.3 MB, free: 22.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.564, allocations: 1.625 kB / 381.3 MB, free: 22.04 MB / 302.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