Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_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.001313/0.001313, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.00133/0.00133, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001118, allocations: 47.94 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07539/0.07652, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003309/0.07986, allocations: 2.718 MB / 329.4 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009748/0.08086, allocations: 0.6982 MB / 330.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.08097, allocations: 4 kB / 330.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.08114, allocations: 31.75 kB / 330.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.08127, allocations: 67.41 kB / 330.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.08153, allocations: 91.89 kB / 330.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.08183, allocations: 342.5 kB / 330.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.082, allocations: 69.16 kB / 330.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.08217, allocations: 127.5 kB / 330.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.08234, allocations: 155.3 kB / 331 MB, free: 492 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.49e-05/0.08239, allocations: 20 kB / 331 MB, free: 472 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.574e-05/0.08244, allocations: 20 kB / 331 MB, free: 452 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.0825, allocations: 63.73 kB / 331.1 MB, free: 388 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.08263, allocations: 131.3 kB / 331.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.08292, allocations: 327.2 kB / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.08293, allocations: 0 / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.08294, allocations: 0 / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.08295, allocations: 0 / 331.5 MB, free: 15.93 MB / 286.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.00144/0.08439, allocations: 0.6393 MB / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.08444, allocations: 12.03 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.1e-05/0.08451, allocations: 54.73 kB / 332.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.014e-05/0.08458, allocations: 28.56 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.08485, allocations: 256.7 kB / 332.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.08488, allocations: 16.81 kB / 332.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.08492, allocations: 20.38 kB / 332.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.08557, allocations: 302.7 kB / 332.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.08559, allocations: 4 kB / 332.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.08563, allocations: 8 kB / 332.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.08564, allocations: 7.938 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007522/0.0864, allocations: 269.5 kB / 333.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.08791, allocations: 1.073 MB / 334.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.08984, allocations: 446.2 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003766/0.09023, allocations: 140.8 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.09026, allocations: 3.984 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.09029, allocations: 38.56 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.0903, allocations: 0 / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004981/0.09528, allocations: 1.022 MB / 335.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.09533, allocations: 51.41 kB / 335.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.09552, allocations: 220.1 kB / 336.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.09555, allocations: 25.7 kB / 336.1 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.09564, allocations: 164.1 kB / 336.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.09569, allocations: 51.25 kB / 336.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/0.09577, allocations: 33.7 kB / 336.4 MB, free: 10.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.09586, allocations: 330.8 kB / 336.7 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.09621, allocations: 103.9 kB / 336.8 MB, free: 10.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.09655, allocations: 128.8 kB / 336.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006466/0.09721, allocations: 233.5 kB / 337.1 MB, free: 10 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.09722, allocations: 3.938 kB / 337.2 MB, free: 10 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002901/0.1001, allocations: 0.6306 MB / 337.8 MB, free: 9.359 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1002, allocations: 4 kB / 337.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1002, allocations: 0 / 337.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006859/0.1009, allocations: 220.6 kB / 338 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.101, allocations: 35.91 kB / 338 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006292/0.1073, allocations: 2.497 MB / 340.5 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.1076, allocations: 27.83 kB / 340.6 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1077, allocations: 11.98 kB / 340.6 MB, free: 6.43 MB / 286.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.0001379/0.1078, allocations: 137.8 kB / 340.7 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.1079, allocations: 23.66 kB / 340.7 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.405e-05/0.1079, allocations: 29.59 kB / 340.8 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1079, allocations: 4 kB / 340.8 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1079, allocations: 3.938 kB / 340.8 MB, free: 6.223 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1079, allocations: 0 / 340.8 MB, free: 6.223 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.1083, allocations: 317.5 kB / 341.1 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1083, allocations: 3.938 kB / 341.1 MB, free: 5.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.1084, allocations: 39.92 kB / 341.1 MB, free: 5.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006126/0.1091, allocations: 216.6 kB / 341.3 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.1091, allocations: 4 kB / 341.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006008/0.1151, allocations: 2.478 MB / 343.8 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1151, allocations: 7.969 kB / 343.8 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.1183, allocations: 0.836 MB / 344.7 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1184, allocations: 100.9 kB / 344.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.1184, allocations: 11.88 kB / 344.8 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.1187, allocations: 36.03 kB / 344.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.1188, allocations: 11.98 kB / 344.8 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1188, allocations: 4 kB / 344.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.1189, allocations: 161.6 kB / 345 MB, free: 1.789 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1189, allocations: 0 / 345 MB, free: 1.789 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004346/0.1194, allocations: 79.84 kB / 345.1 MB, free: 1.711 MB / 286.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.003435/0.1228, allocations: 1.384 MB / 346.4 MB, free: 300 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.1243, allocations: 453.8 kB / 346.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1243, allocations: 0 / 346.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.1254, allocations: 322.6 kB / 347.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.1258, allocations: 28.66 kB / 347.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008502/0.1343, allocations: 3.443 MB / 350.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.1346, allocations: 0.7437 MB / 351.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.032e-05/0.1347, allocations: 21.53 kB / 351.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.722e-05/0.1348, allocations: 67.41 kB / 351.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1348, allocations: 0 / 351.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.24/4.375, allocations: 6.817 MB / 358.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003636/4.375, allocations: 242.7 kB / 358.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/6.461, allocations: 0 / 358.6 MB, free: 3.992 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_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.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,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