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.0007625/0.0007622, allocations: 92.89 kB / 17.3 MB, free: 6.395 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.0007882/0.0007884, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.628/1.628, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004526/0.0004526, allocations: 16 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08613, allocations: 47.58 MB / 329.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002822/0.08899, allocations: 2.355 MB / 331.4 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.09017, allocations: 0.6866 MB / 332.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.09031, allocations: 7.938 kB / 332.1 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.09045, allocations: 35.75 kB / 332.1 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.09058, allocations: 59.47 kB / 332.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.09085, allocations: 99.83 kB / 332.3 MB, free: 416 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.09117, allocations: 338.5 kB / 332.6 MB, free: 76 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.09134, allocations: 73.14 kB / 332.7 MB, free: 8 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.09154, allocations: 119.5 kB / 332.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.09171, allocations: 143.4 kB / 333 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.09175, allocations: 16 kB / 333 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.09179, allocations: 16 kB / 333 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.651e-05/0.09185, allocations: 55.75 kB / 333 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.09197, allocations: 149.1 kB / 333.2 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.09226, allocations: 327 kB / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.09227, allocations: 0 / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.09228, allocations: 0 / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.09229, allocations: 3.938 kB / 333.5 MB, free: 15.19 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.001343/0.09364, allocations: 0.6082 MB / 334.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.0937, allocations: 12.03 kB / 334.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.813e-05/0.09377, allocations: 50.73 kB / 334.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.09384, allocations: 28.66 kB / 334.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.09416, allocations: 260.7 kB / 334.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.09418, allocations: 16.81 kB / 334.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/0.09424, allocations: 16.38 kB / 334.5 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.09488, allocations: 318.7 kB / 334.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.0949, allocations: 0 / 334.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.09494, allocations: 15.94 kB / 334.8 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.09495, allocations: 4 kB / 334.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007436/0.0957, allocations: 281.6 kB / 335.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.09726, allocations: 1.085 MB / 336.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.09915, allocations: 486.3 kB / 336.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003885/0.09955, allocations: 152.8 kB / 336.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.09958, allocations: 3.938 kB / 336.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.09962, allocations: 38.56 kB / 336.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.09963, allocations: 0 / 336.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004918/0.1046, allocations: 1.124 MB / 338 MB, free: 10.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.1046, allocations: 55.34 kB / 338 MB, free: 10.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.1048, allocations: 216.2 kB / 338.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1049, allocations: 25.7 kB / 338.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.105, allocations: 172 kB / 338.4 MB, free: 9.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.888e-05/0.105, allocations: 43.36 kB / 338.5 MB, free: 9.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.1051, allocations: 17.72 kB / 338.5 MB, free: 9.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1052, allocations: 330.8 kB / 338.8 MB, free: 9.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/0.1055, allocations: 111.9 kB / 338.9 MB, free: 9.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.1059, allocations: 137.6 kB / 339.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.1066, allocations: 244.6 kB / 339.3 MB, free: 9.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1066, allocations: 3.938 kB / 339.3 MB, free: 9.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002901/0.1095, allocations: 0.697 MB / 340 MB, free: 8.379 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1095, allocations: 4 kB / 340 MB, free: 8.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1096, allocations: 4 kB / 340 MB, free: 8.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/0.1103, allocations: 240.6 kB / 340.2 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1105, allocations: 35.97 kB / 340.3 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006488/0.117, allocations: 2.607 MB / 342.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.1173, allocations: 43.92 kB / 342.9 MB, free: 5.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1173, allocations: 7.984 kB / 342.9 MB, free: 5.305 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.0001761/0.1175, allocations: 133.7 kB / 343.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.1176, allocations: 27.75 kB / 343.1 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.1176, allocations: 25.52 kB / 343.1 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.1176, allocations: 7.938 kB / 343.1 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1177, allocations: 0 / 343.1 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1177, allocations: 3.938 kB / 343.1 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/0.118, allocations: 321.4 kB / 343.4 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.1181, allocations: 7.938 kB / 343.4 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.1182, allocations: 23.98 kB / 343.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006563/0.1189, allocations: 232.7 kB / 343.7 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.1189, allocations: 11.98 kB / 343.7 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006157/0.1251, allocations: 2.603 MB / 346.3 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1251, allocations: 3.938 kB / 346.3 MB, free: 1.719 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003191/0.1283, allocations: 0.9134 MB / 347.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.1284, allocations: 96.88 kB / 347.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.1284, allocations: 7.938 kB / 347.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.1287, allocations: 40.03 kB / 347.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.1288, allocations: 7.984 kB / 347.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.1288, allocations: 8 kB / 347.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000133/0.1289, allocations: 165.6 kB / 347.6 MB, free: 464 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.129, allocations: 0 / 347.6 MB, free: 464 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.1294, allocations: 79.75 kB / 347.6 MB, free: 384 kB / 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.003475/0.1329, allocations: 1.452 MB / 349.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.1344, allocations: 474.5 kB / 349.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1344, allocations: 0 / 349.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.1354, allocations: 358.4 kB / 349.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.1358, allocations: 32.66 kB / 349.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008319/0.1441, allocations: 3.609 MB / 353.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.1445, allocations: 0.7437 MB / 354.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.686e-05/0.1446, allocations: 17.55 kB / 354.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1447, allocations: 67.41 kB / 354.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of SimCode: time 1.754e-06/0.1447, allocations: 0 / 354.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.1628, allocations: 6.702 MB / 361.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003199/0.1632, allocations: 242.1 kB / 361.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.084, allocations: 0 / 361.3 MB, free: 2.508 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