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.0008367/0.0008367, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009702/0.0009704, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002078/0.0002078, allocations: 8 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08058/0.08081, allocations: 51.51 MB / 359.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00254/0.08337, allocations: 2.407 MB / 361.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.08465, allocations: 0.7052 MB / 362.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.08486, allocations: 7.938 kB / 362.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.085, allocations: 31.77 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.0852, allocations: 67.45 kB / 362.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.08552, allocations: 95.83 kB / 362.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003475/0.08588, allocations: 342.6 kB / 363 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.08604, allocations: 73.14 kB / 363.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.08627, allocations: 131.5 kB / 363.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.08645, allocations: 147.3 kB / 363.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.08649, allocations: 16 kB / 363.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.097e-05/0.08656, allocations: 16 kB / 363.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.08661, allocations: 51.81 kB / 363.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.08675, allocations: 160.9 kB / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.08704, allocations: 323 kB / 363.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.08705, allocations: 0 / 363.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.08705, allocations: 0 / 363.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.08707, allocations: 4 kB / 363.9 MB, free: 8.641 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.001293/0.08836, allocations: 0.6159 MB / 364.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.08841, allocations: 8.031 kB / 364.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.532e-05/0.0885, allocations: 58.72 kB / 364.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.08867, allocations: 44.56 kB / 364.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.08895, allocations: 256.7 kB / 364.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.08897, allocations: 16.81 kB / 364.9 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/0.08902, allocations: 16.38 kB / 364.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/0.08964, allocations: 314.7 kB / 365.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.08966, allocations: 0 / 365.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.08969, allocations: 8 kB / 365.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.08971, allocations: 4 kB / 365.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007377/0.09045, allocations: 297.5 kB / 365.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.09196, allocations: 1.077 MB / 366.6 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.09375, allocations: 486.3 kB / 367.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.09412, allocations: 152.8 kB / 367.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.09415, allocations: 7.984 kB / 367.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.09418, allocations: 34.56 kB / 367.3 MB, free: 5.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.09419, allocations: 4 kB / 367.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004611/0.09881, allocations: 1.123 MB / 368.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.09884, allocations: 55.66 kB / 368.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.09904, allocations: 225 kB / 368.7 MB, free: 3.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.09907, allocations: 25.7 kB / 368.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.09916, allocations: 156.1 kB / 368.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.09921, allocations: 51.34 kB / 368.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.09925, allocations: 21.7 kB / 368.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09936, allocations: 330.8 kB / 369.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.09969, allocations: 115.8 kB / 369.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.1, allocations: 133.6 kB / 369.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006353/0.1007, allocations: 260.1 kB / 369.7 MB, free: 2.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1007, allocations: 3.938 kB / 369.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002706/0.1034, allocations: 0.6931 MB / 370.4 MB, free: 1.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1034, allocations: 4 kB / 370.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1034, allocations: 0 / 370.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006682/0.1041, allocations: 232.7 kB / 370.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1043, allocations: 35.98 kB / 370.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1424/0.2467, allocations: 2.609 MB / 373.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.247, allocations: 40.11 kB / 373.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.247, allocations: 9.25 kB / 373.3 MB, free: 18.22 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.0001148/0.2471, allocations: 131.2 kB / 373.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.2472, allocations: 21.42 kB / 373.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.412e-05/0.2472, allocations: 28.48 kB / 373.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2472, allocations: 5.953 kB / 373.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2472, allocations: 1.797 kB / 373.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2473, allocations: 0.5625 kB / 373.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.2476, allocations: 327.6 kB / 373.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2476, allocations: 1.094 kB / 373.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.2477, allocations: 28.55 kB / 373.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006287/0.2484, allocations: 233.9 kB / 374.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.2484, allocations: 7.953 kB / 374.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/0.2541, allocations: 2.603 MB / 376.7 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2541, allocations: 3.938 kB / 376.7 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.2572, allocations: 0.9058 MB / 377.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.2573, allocations: 101 kB / 377.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.2573, allocations: 3.75 kB / 377.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.2576, allocations: 44.03 kB / 377.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.2576, allocations: 9.453 kB / 377.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2576, allocations: 6.5 kB / 377.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001191/0.2578, allocations: 163.3 kB / 378 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2578, allocations: 0 / 378 MB, free: 16.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004022/0.2582, allocations: 76.45 kB / 378 MB, free: 16.21 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.003183/0.2614, allocations: 1.455 MB / 379.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.2627, allocations: 479.8 kB / 379.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2627, allocations: 0.75 kB / 380 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009611/0.2637, allocations: 353.5 kB / 380.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2641, allocations: 37.09 kB / 380.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00747/0.2715, allocations: 3.62 MB / 384 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.2717, allocations: 0.7439 MB / 384.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.019e-05/0.2718, allocations: 20.44 kB / 384.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.724e-05/0.2719, allocations: 69.69 kB / 384.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2719, allocations: 0 / 384.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.2884, allocations: 6.729 MB / 391.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001444/0.2885, allocations: 245.1 kB / 391.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.003, allocations: 3.938 kB / 391.8 MB, free: 10.25 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