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.001206/0.001206, allocations: 118 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.598/1.598, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 67.66 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1594, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005415/0.1649, allocations: 2.777 MB / 359.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.167, allocations: 0.709 MB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004063/0.1674, allocations: 11.94 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.1678, allocations: 31.75 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00044/0.1683, allocations: 59.47 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006378/0.1689, allocations: 91.84 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006473/0.1696, allocations: 358.6 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.1699, allocations: 96.69 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.1703, allocations: 147.5 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.1707, allocations: 159.4 kB / 361.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.569e-05/0.1708, allocations: 32 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.1709, allocations: 36 kB / 361.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.171, allocations: 71.69 kB / 361.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1712, allocations: 147.4 kB / 361.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.1717, allocations: 347.1 kB / 362.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.1718, allocations: 0 / 362.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1718, allocations: 0 / 362.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1718, allocations: 0 / 362.1 MB, free: 9.254 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.001867/0.1737, allocations: 0.643 MB / 362.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.1737, allocations: 12.03 kB / 362.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.1738, allocations: 50.73 kB / 362.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.1741, allocations: 40.64 kB / 362.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.1746, allocations: 268.6 kB / 363.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.1746, allocations: 16.81 kB / 363.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.1747, allocations: 20.38 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008138/0.1755, allocations: 302.7 kB / 363.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1756, allocations: 0 / 363.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.1756, allocations: 8 kB / 363.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.1756, allocations: 8 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008249/0.1765, allocations: 265.5 kB / 363.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.1785, allocations: 1.069 MB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002062/0.1806, allocations: 446.2 kB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004302/0.1811, allocations: 148.7 kB / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.1811, allocations: 4 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.1812, allocations: 34.56 kB / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.1812, allocations: 0 / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005331/0.1865, allocations: 1.014 MB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.1866, allocations: 63.41 kB / 366.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.1869, allocations: 217 kB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1869, allocations: 29.7 kB / 366.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.1871, allocations: 160.1 kB / 366.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.273e-05/0.1872, allocations: 47.34 kB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.785e-05/0.1873, allocations: 37.69 kB / 367 MB, free: 4.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.1875, allocations: 330.8 kB / 367.3 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.1879, allocations: 107.9 kB / 367.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003477/0.1882, allocations: 125.5 kB / 367.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.1889, allocations: 228.4 kB / 367.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.1889, allocations: 7.938 kB / 367.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00305/0.192, allocations: 0.6228 MB / 368.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.192, allocations: 11.98 kB / 368.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.192, allocations: 4 kB / 368.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008622/0.1929, allocations: 212.7 kB / 368.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.1931, allocations: 39.92 kB / 368.6 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2886/0.4818, allocations: 2.739 MB / 371.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.4821, allocations: 38.69 kB / 371.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.4822, allocations: 9.438 kB / 371.4 MB, free: 19.27 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.0001463/0.4823, allocations: 135.4 kB / 371.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.4824, allocations: 22.44 kB / 371.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.769e-05/0.4824, allocations: 27.28 kB / 371.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.4825, allocations: 2.844 kB / 371.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4825, allocations: 3.375 kB / 371.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.4825, allocations: 1.969 kB / 371.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004004/0.4829, allocations: 319.4 kB / 371.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.4829, allocations: 1.688 kB / 371.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.4831, allocations: 33.72 kB / 372 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007065/0.4838, allocations: 221.7 kB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.4838, allocations: 3.828 kB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006734/0.4906, allocations: 2.745 MB / 374.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4906, allocations: 0 / 374.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003524/0.4941, allocations: 0.8382 MB / 375.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.634e-05/0.4943, allocations: 102 kB / 375.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.4943, allocations: 2.188 kB / 375.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/0.4946, allocations: 36.78 kB / 375.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.4947, allocations: 7.891 kB / 375.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.4947, allocations: 6.016 kB / 375.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001686/0.4949, allocations: 159.5 kB / 376.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4949, allocations: 0 / 376.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007309/0.4956, allocations: 83.44 kB / 376.2 MB, free: 17.16 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.003888/0.4995, allocations: 1.393 MB / 377.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.5013, allocations: 451.8 kB / 378 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5013, allocations: 1.25 kB / 378 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.5025, allocations: 335.9 kB / 378.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.5029, allocations: 29.52 kB / 378.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008629/0.5116, allocations: 3.439 MB / 381.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.5118, allocations: 0.752 MB / 382.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.496e-05/0.5119, allocations: 14.7 kB / 382.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.512, allocations: 66.27 kB / 382.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.512, allocations: 1.156 kB / 382.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.5379, allocations: 7.122 MB / 389.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.5381, allocations: 246.8 kB / 390 MB, free: 10.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.717, allocations: 0 / 390 MB, free: 10.94 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