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.001471/0.001472, allocations: 117.4 kB / 17.28 MB, free: 6.219 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.001446/0.001446, allocations: 193.3 kB / 18.19 MB, free: 5.301 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.465/1.465, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.0012/0.0012, allocations: 44.16 kB / 280.2 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1062, allocations: 46.63 MB / 326.9 MB, free: 4.711 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005259/0.1115, allocations: 2.714 MB / 329.6 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.113, allocations: 0.706 MB / 330.3 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.1132, allocations: 4 kB / 330.3 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.1134, allocations: 35.69 kB / 330.3 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1135, allocations: 67.45 kB / 330.4 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.1139, allocations: 87.91 kB / 330.5 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.1143, allocations: 362.5 kB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.1146, allocations: 84.72 kB / 330.9 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.1148, allocations: 139.6 kB / 331.1 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.115, allocations: 163.3 kB / 331.2 MB, free: 344 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.115, allocations: 32 kB / 331.2 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.923e-05/0.1151, allocations: 28 kB / 331.3 MB, free: 284 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.605e-05/0.1152, allocations: 67.75 kB / 331.3 MB, free: 216 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1153, allocations: 143.4 kB / 331.5 MB, free: 72 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003906/0.1157, allocations: 347.1 kB / 331.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1157, allocations: 3.938 kB / 331.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1157, allocations: 0 / 331.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1158, allocations: 0 / 331.8 MB, free: 15.73 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.001588/0.1174, allocations: 0.6354 MB / 332.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.1174, allocations: 12.03 kB / 332.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.1175, allocations: 50.73 kB / 332.5 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.645e-05/0.1176, allocations: 32.56 kB / 332.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.1179, allocations: 260.7 kB / 332.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.1179, allocations: 16.81 kB / 332.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.118, allocations: 16.38 kB / 332.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.1187, allocations: 302.8 kB / 333.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1187, allocations: 0 / 333.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1187, allocations: 12 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.1187, allocations: 4 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.1195, allocations: 269.5 kB / 333.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.1212, allocations: 1.073 MB / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.1232, allocations: 442.3 kB / 334.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004003/0.1236, allocations: 144.8 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.1237, allocations: 0 / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.1237, allocations: 42.55 kB / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.1237, allocations: 0 / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005215/0.1289, allocations: 1.022 MB / 336.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.129, allocations: 55.41 kB / 336.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.1293, allocations: 220.1 kB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.1294, allocations: 25.7 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1295, allocations: 160.1 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.1296, allocations: 55.27 kB / 336.6 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.1296, allocations: 33.69 kB / 336.7 MB, free: 10.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1298, allocations: 326.8 kB / 337 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.1302, allocations: 103.9 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003719/0.1306, allocations: 136.7 kB / 337.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006762/0.1313, allocations: 221.6 kB / 337.4 MB, free: 9.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.738e-05/0.1313, allocations: 3.938 kB / 337.4 MB, free: 9.812 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003068/0.1344, allocations: 0.6345 MB / 338.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1344, allocations: 4 kB / 338.1 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1344, allocations: 4 kB / 338.1 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007982/0.1352, allocations: 220.6 kB / 338.3 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.1354, allocations: 35.92 kB / 338.3 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007426/0.1429, allocations: 2.742 MB / 341.1 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.1432, allocations: 39.91 kB / 341.1 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.1432, allocations: 15.92 kB / 341.1 MB, free: 5.969 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.0002169/0.1435, allocations: 133.7 kB / 341.3 MB, free: 5.828 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.1435, allocations: 23.72 kB / 341.3 MB, free: 5.805 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.1436, allocations: 21.53 kB / 341.3 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1436, allocations: 3.984 kB / 341.3 MB, free: 5.777 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1436, allocations: 4 kB / 341.3 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1436, allocations: 0 / 341.3 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.144, allocations: 321.4 kB / 341.6 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.144, allocations: 4 kB / 341.6 MB, free: 5.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1442, allocations: 31.92 kB / 341.7 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006476/0.1449, allocations: 224.7 kB / 341.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.1449, allocations: 7.984 kB / 341.9 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006846/0.1518, allocations: 2.731 MB / 344.6 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1518, allocations: 0 / 344.6 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.1552, allocations: 0.8515 MB / 345.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.1553, allocations: 92.89 kB / 345.6 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.1553, allocations: 11.98 kB / 345.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.1556, allocations: 32.03 kB / 345.6 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.1557, allocations: 8 kB / 345.6 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.1557, allocations: 7.984 kB / 345.6 MB, free: 1.234 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001686/0.1559, allocations: 161.6 kB / 345.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1559, allocations: 0 / 345.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004995/0.1564, allocations: 79.84 kB / 345.8 MB, free: 1 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.003761/0.1602, allocations: 1.384 MB / 347.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.1619, allocations: 453.9 kB / 347.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1619, allocations: 0 / 347.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.163, allocations: 334.4 kB / 348 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.1634, allocations: 44.52 kB / 348 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008763/0.1722, allocations: 3.432 MB / 351.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1726, allocations: 0.7437 MB / 352.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.339e-05/0.1726, allocations: 17.55 kB / 352.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.776e-05/0.1728, allocations: 67.41 kB / 352.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1728, allocations: 0 / 352.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.1962, allocations: 7.108 MB / 359.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.1964, allocations: 235.1 kB / 359.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.275, allocations: 4 kB / 359.6 MB, free: 2.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