Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 103.9 kB / 17.63 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00192/0.00192, allocations: 202.4 kB / 18.57 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.00194, allocations: 64.05 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1177, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003671/0.1214, allocations: 2.72 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1226, allocations: 0.7167 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1227, allocations: 4 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.1229, allocations: 47.56 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.123, allocations: 71.28 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1234, allocations: 111.8 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.1238, allocations: 358.6 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.124, allocations: 92.62 kB / 361.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.1242, allocations: 143.5 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.1244, allocations: 163.3 kB / 362 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.1245, allocations: 32 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.657e-05/0.1246, allocations: 32 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.1246, allocations: 71.81 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1248, allocations: 147.3 kB / 362.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.1251, allocations: 351.1 kB / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1252, allocations: 0 / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1252, allocations: 0 / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1252, allocations: 3.938 kB / 362.6 MB, free: 8.949 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.001434/0.1266, allocations: 0.6469 MB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.1267, allocations: 16.03 kB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.646e-05/0.1267, allocations: 50.73 kB / 363.3 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.1269, allocations: 36.64 kB / 363.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.1272, allocations: 268.6 kB / 363.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.1272, allocations: 20.75 kB / 363.6 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.1273, allocations: 16.38 kB / 363.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.1279, allocations: 306.7 kB / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1279, allocations: 0 / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.128, allocations: 7.984 kB / 364 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.128, allocations: 8 kB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000782/0.1288, allocations: 265.6 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.1303, allocations: 1.073 MB / 365.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.1323, allocations: 438.3 kB / 365.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004147/0.1327, allocations: 144.8 kB / 365.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1327, allocations: 7.938 kB / 365.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.1328, allocations: 34.56 kB / 365.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.1328, allocations: 0 / 365.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005014/0.1378, allocations: 1.022 MB / 366.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.1378, allocations: 55.34 kB / 367 MB, free: 4.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1381, allocations: 229 kB / 367.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1381, allocations: 25.7 kB / 367.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.141e-05/0.1382, allocations: 156.1 kB / 367.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.1382, allocations: 47.36 kB / 367.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.1383, allocations: 33.69 kB / 367.5 MB, free: 3.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1384, allocations: 338.8 kB / 367.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.1388, allocations: 103.9 kB / 367.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.1391, allocations: 132.5 kB / 368 MB, free: 3.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.1398, allocations: 217.6 kB / 368.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1398, allocations: 3.938 kB / 368.2 MB, free: 3.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002916/0.1428, allocations: 0.6369 MB / 368.9 MB, free: 2.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1428, allocations: 4 kB / 368.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1428, allocations: 4 kB / 368.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007282/0.1435, allocations: 216.6 kB / 369.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.1437, allocations: 31.98 kB / 369.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1568/0.3006, allocations: 2.746 MB / 371.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.3009, allocations: 40.44 kB / 371.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.3009, allocations: 10.44 kB / 371.9 MB, free: 19.02 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.0001298/0.3011, allocations: 134.6 kB / 372.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.3012, allocations: 20.84 kB / 372.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.208e-05/0.3012, allocations: 28.2 kB / 372.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3012, allocations: 1.656 kB / 372.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.3012, allocations: 3.344 kB / 372.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3012, allocations: 6.188 kB / 372.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003578/0.3016, allocations: 321.7 kB / 372.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3016, allocations: 1.828 kB / 372.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.3018, allocations: 28.78 kB / 372.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006693/0.3025, allocations: 223.4 kB / 372.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.3025, allocations: 3.672 kB / 372.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006362/0.3089, allocations: 2.734 MB / 375.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3089, allocations: 0 / 375.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003204/0.3121, allocations: 0.846 MB / 376.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.3122, allocations: 97.17 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.3122, allocations: 8.141 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.3125, allocations: 30.33 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.3126, allocations: 11.97 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.3126, allocations: 6.359 kB / 376.4 MB, free: 16.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000129/0.3127, allocations: 162.3 kB / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3127, allocations: 7.312 kB / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004797/0.3132, allocations: 81.33 kB / 376.7 MB, free: 16.84 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.003349/0.3166, allocations: 1.38 MB / 378 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.3181, allocations: 447.2 kB / 378.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3182, allocations: 1.5 kB / 378.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.3192, allocations: 331 kB / 378.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.3196, allocations: 39.78 kB / 378.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008445/0.3281, allocations: 3.347 MB / 382.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.3283, allocations: 0.7444 MB / 382.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.3284, allocations: 12.17 kB / 382.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.307e-05/0.3285, allocations: 79.12 kB / 383 MB, free: 13.18 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3285, allocations: 0 / 383 MB, free: 13.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02829/0.3568, allocations: 7.241 MB / 390.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.26, allocations: 9.391 kB / 390.3 MB, free: 10.77 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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