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.001535/0.001535, allocations: 112.1 kB / 16.62 MB, free: 6.801 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.001738/0.001739, allocations: 190 kB / 17.55 MB, free: 5.918 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.474/1.474, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.48 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1117, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005404/0.1171, allocations: 2.745 MB / 352.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.1189, allocations: 0.6622 MB / 353.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.1193, allocations: 4 kB / 353.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.1197, allocations: 35.75 kB / 353.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.1201, allocations: 63.41 kB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.1207, allocations: 95.89 kB / 353.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000576/0.1212, allocations: 354.5 kB / 353.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.1216, allocations: 84.7 kB / 353.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003723/0.122, allocations: 143.5 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002891/0.1223, allocations: 163.3 kB / 354 MB, free: 308 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-05/0.1223, allocations: 32 kB / 354 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.868e-05/0.1224, allocations: 32 kB / 354.1 MB, free: 244 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.57e-05/0.1225, allocations: 71.73 kB / 354.1 MB, free: 172 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.1227, allocations: 147.3 kB / 354.3 MB, free: 24 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.1231, allocations: 339.1 kB / 354.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1231, allocations: 0 / 354.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1231, allocations: 0 / 354.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1231, allocations: 0 / 354.6 MB, free: 15.69 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.001799/0.1249, allocations: 0.6431 MB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.125, allocations: 12.03 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1251, allocations: 50.73 kB / 355.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.1252, allocations: 28.66 kB / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.1257, allocations: 260.6 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.1257, allocations: 16.81 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.295e-05/0.1258, allocations: 20.36 kB / 355.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008339/0.1267, allocations: 306.7 kB / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1267, allocations: 0 / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.1267, allocations: 8 kB / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1268, allocations: 4 kB / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008662/0.1276, allocations: 273.5 kB / 356.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.1297, allocations: 1.062 MB / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/0.1317, allocations: 443.5 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/0.1321, allocations: 156.8 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.1321, allocations: 0 / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.1322, allocations: 30.56 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.1322, allocations: 0 / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00523/0.1374, allocations: 1.033 MB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.1375, allocations: 55.41 kB / 359 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.1378, allocations: 220.2 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.1378, allocations: 25.7 kB / 359.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1379, allocations: 160.1 kB / 359.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.757e-05/0.138, allocations: 51.27 kB / 359.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.1381, allocations: 29.7 kB / 359.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1383, allocations: 334.8 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.1386, allocations: 99.94 kB / 359.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.139, allocations: 129.6 kB / 360 MB, free: 10 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007162/0.1397, allocations: 233.7 kB / 360.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.1397, allocations: 3.938 kB / 360.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003108/0.1429, allocations: 0.6372 MB / 360.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.1429, allocations: 4 kB / 360.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1429, allocations: 4 kB / 360.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008422/0.1438, allocations: 212.7 kB / 361.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.144, allocations: 39.91 kB / 361.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007379/0.1514, allocations: 2.75 MB / 363.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.1517, allocations: 39.84 kB / 363.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.1517, allocations: 4 kB / 363.9 MB, free: 5.93 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.0001726/0.1519, allocations: 133.8 kB / 364.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.47e-05/0.152, allocations: 27.7 kB / 364.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.292e-05/0.152, allocations: 21.53 kB / 364.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.152, allocations: 0 / 364.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1521, allocations: 4 kB / 364.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1521, allocations: 3.984 kB / 364.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004078/0.1525, allocations: 317.5 kB / 364.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1525, allocations: 0 / 364.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1527, allocations: 39.89 kB / 364.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006499/0.1533, allocations: 220.7 kB / 364.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1534, allocations: 4 kB / 364.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006756/0.1601, allocations: 2.731 MB / 367.4 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1601, allocations: 0 / 367.4 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.1637, allocations: 0.8511 MB / 368.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-05/0.1638, allocations: 92.89 kB / 368.4 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.1638, allocations: 8 kB / 368.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.1641, allocations: 27.97 kB / 368.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.1642, allocations: 7.984 kB / 368.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.1642, allocations: 19.98 kB / 368.4 MB, free: 1.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001588/0.1644, allocations: 153.9 kB / 368.6 MB, free: 1.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1644, allocations: 3.938 kB / 368.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004548/0.1648, allocations: 79.84 kB / 368.6 MB, free: 0.9648 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.2208/0.3856, allocations: 1.378 MB / 370 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.3874, allocations: 448.9 kB / 370.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3875, allocations: 2.062 kB / 370.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.3887, allocations: 330 kB / 370.8 MB, free: 25.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.3891, allocations: 36.44 kB / 370.8 MB, free: 25.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009527/0.3987, allocations: 3.431 MB / 374.3 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.3989, allocations: 0.7469 MB / 375 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.3991, allocations: 13.05 kB / 375 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.3992, allocations: 66.98 kB / 375.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3992, allocations: 1.375 kB / 375.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.4263, allocations: 7.108 MB / 382.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002856/0.4266, allocations: 240.6 kB / 382.4 MB, free: 21.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.624, allocations: 4 kB / 382.4 MB, free: 21.41 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