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.0008187/0.0008188, allocations: 92.56 kB / 16.65 MB, free: 6.598 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.0008783/0.0008783, allocations: 177.3 kB / 17.56 MB, free: 6.203 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.399/1.399, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002563, allocations: 4 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09537, allocations: 50.41 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003087/0.0985, allocations: 2.382 MB / 354.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.09986, allocations: 0.6545 MB / 355 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.1001, allocations: 8 kB / 355 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1003, allocations: 27.77 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.1006, allocations: 71.39 kB / 355.1 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.1009, allocations: 83.91 kB / 355.2 MB, free: 392 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.1014, allocations: 342.5 kB / 355.5 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.1017, allocations: 85.12 kB / 355.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.1019, allocations: 119.5 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.1022, allocations: 139.4 kB / 355.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.434e-05/0.1022, allocations: 16 kB / 355.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.1023, allocations: 16 kB / 355.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.1024, allocations: 59.69 kB / 355.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.1025, allocations: 157 kB / 356.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.1029, allocations: 319.1 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1029, allocations: 0 / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1029, allocations: 4 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1029, allocations: 0 / 356.4 MB, free: 15.14 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.001467/0.1044, allocations: 0.6043 MB / 357 MB, free: 14.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1044, allocations: 12.03 kB / 357 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.608e-05/0.1045, allocations: 54.72 kB / 357.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.007e-05/0.1046, allocations: 28.66 kB / 357.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.105, allocations: 260.6 kB / 357.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.105, allocations: 12.81 kB / 357.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.105, allocations: 20.38 kB / 357.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000715/0.1058, allocations: 314.7 kB / 357.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1058, allocations: 0 / 357.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.1058, allocations: 8 kB / 357.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1058, allocations: 8 kB / 357.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007965/0.1066, allocations: 293.5 kB / 358 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1084, allocations: 1.077 MB / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.1104, allocations: 486.3 kB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.1108, allocations: 160.2 kB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1108, allocations: 4 kB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.1109, allocations: 34.56 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.502e-06/0.1109, allocations: 0 / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004966/0.1159, allocations: 1.127 MB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.1159, allocations: 51.41 kB / 360.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.1161, allocations: 216.2 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1162, allocations: 33.7 kB / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1163, allocations: 160 kB / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.1164, allocations: 39.36 kB / 361.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.333e-05/0.1164, allocations: 21.7 kB / 361.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1165, allocations: 330.8 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.1169, allocations: 123.9 kB / 361.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.1173, allocations: 133.6 kB / 361.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000702/0.118, allocations: 256.4 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.118, allocations: 3.938 kB / 362.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002962/0.121, allocations: 0.6931 MB / 362.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.121, allocations: 8 kB / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.121, allocations: 0 / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000733/0.1218, allocations: 236.6 kB / 363.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1219, allocations: 35.92 kB / 363.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006684/0.1286, allocations: 2.61 MB / 365.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.129, allocations: 47.91 kB / 365.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.129, allocations: 7.984 kB / 365.8 MB, free: 5.254 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.0001655/0.1292, allocations: 133.8 kB / 365.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.1292, allocations: 19.75 kB / 366 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.685e-05/0.1293, allocations: 21.53 kB / 366 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1293, allocations: 4 kB / 366 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1293, allocations: 3.984 kB / 366 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1293, allocations: 0 / 366 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.1297, allocations: 329.4 kB / 366.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.1297, allocations: 3.938 kB / 366.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.1299, allocations: 27.98 kB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006518/0.1306, allocations: 236.6 kB / 366.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1306, allocations: 7.984 kB / 366.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006406/0.137, allocations: 2.591 MB / 369.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.137, allocations: 7.875 kB / 369.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.1405, allocations: 0.906 MB / 370.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.934e-05/0.1406, allocations: 96.89 kB / 370.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.1406, allocations: 7.938 kB / 370.2 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003008/0.1409, allocations: 35.97 kB / 370.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.141, allocations: 11.98 kB / 370.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.141, allocations: 11.98 kB / 370.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.1412, allocations: 157.9 kB / 370.4 MB, free: 436 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1412, allocations: 0 / 370.4 MB, free: 436 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.00046/0.1416, allocations: 79.75 kB / 370.5 MB, free: 356 kB / 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.16/0.3017, allocations: 1.446 MB / 371.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.3034, allocations: 474.6 kB / 372.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3034, allocations: 5.266 kB / 372.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.3046, allocations: 354.6 kB / 372.7 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.3051, allocations: 43 kB / 372.8 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008704/0.3138, allocations: 3.605 MB / 376.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/0.314, allocations: 0.7446 MB / 377.1 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.428e-05/0.3141, allocations: 16.06 kB / 377.2 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.177e-05/0.3142, allocations: 68.81 kB / 377.2 MB, free: 21.52 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3142, allocations: 3.828 kB / 377.2 MB, free: 21.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.3338, allocations: 6.711 MB / 383.9 MB, free: 20.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001438/0.334, allocations: 239.2 kB / 384.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.326, allocations: 0 / 384.2 MB, free: 19.78 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