Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 191.5 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.213/1.213, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007572/0.0007572, allocations: 99.73 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001976/0.0001976, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1684, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.001864/0.1703, allocations: 2.306 MB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008543/0.1712, allocations: 0.6614 MB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1714, allocations: 7.938 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.1715, allocations: 27.77 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.1716, allocations: 68.45 kB / 411.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1719, allocations: 77.11 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002385/0.1721, allocations: 318.6 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.1723, allocations: 82.77 kB / 411.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.1725, allocations: 123.6 kB / 411.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.1726, allocations: 147.4 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1726, allocations: 17.44 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.1727, allocations: 16 kB / 412 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.1727, allocations: 51.75 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.504e-05/0.1728, allocations: 153.1 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.173, allocations: 248.5 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.173, allocations: 0 / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.173, allocations: 0 / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1731, allocations: 0 / 412.4 MB, free: 23.39 MB / 298.7 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.001131/0.1742, allocations: 0.616 MB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1742, allocations: 12.03 kB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.508e-05/0.1743, allocations: 50.73 kB / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.1744, allocations: 40.64 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.1746, allocations: 260.7 kB / 413.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1746, allocations: 16.81 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.1747, allocations: 16.38 kB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/0.1752, allocations: 314.7 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1753, allocations: 4 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1753, allocations: 7.984 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1753, allocations: 12 kB / 413.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.176, allocations: 289.5 kB / 414 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.1773, allocations: 1.069 MB / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.179, allocations: 482.3 kB / 415.6 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.1793, allocations: 156.8 kB / 415.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.1794, allocations: 4 kB / 415.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.307e-05/0.1794, allocations: 30.56 kB / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.1794, allocations: 0 / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004447/0.1838, allocations: 1.131 MB / 416.9 MB, free: 18.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/0.1839, allocations: 51.41 kB / 416.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.184, allocations: 216.2 kB / 417.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.184, allocations: 29.7 kB / 417.2 MB, free: 18.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.1841, allocations: 164.1 kB / 417.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.1841, allocations: 47.3 kB / 417.4 MB, free: 18.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.408e-05/0.1842, allocations: 4 kB / 417.4 MB, free: 18.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.753e-05/0.1842, allocations: 330.8 kB / 417.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.1845, allocations: 111.9 kB / 417.8 MB, free: 17.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.1848, allocations: 133.6 kB / 417.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005837/0.1854, allocations: 248.3 kB / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1854, allocations: 3.938 kB / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002576/0.188, allocations: 0.6969 MB / 418.9 MB, free: 16.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.188, allocations: 7.938 kB / 418.9 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.188, allocations: 3.938 kB / 418.9 MB, free: 16.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006133/0.1887, allocations: 232.7 kB / 419.1 MB, free: 16.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.1888, allocations: 35.97 kB / 419.2 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005454/0.1943, allocations: 2.603 MB / 421.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.1945, allocations: 43.88 kB / 421.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.1946, allocations: 4 kB / 421.8 MB, free: 13.54 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 9.549e-05/0.1947, allocations: 137.7 kB / 422 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.1947, allocations: 27.66 kB / 422 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.771e-05/0.1948, allocations: 25.52 kB / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1948, allocations: 0 / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1948, allocations: 0 / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1948, allocations: 0 / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.195, allocations: 325.4 kB / 422.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.195, allocations: 3.938 kB / 422.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.1952, allocations: 31.97 kB / 422.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005546/0.1957, allocations: 236.7 kB / 422.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.1958, allocations: 4 kB / 422.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005275/0.2011, allocations: 2.595 MB / 425.2 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2011, allocations: 8.062 kB / 425.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/0.2039, allocations: 0.9111 MB / 426.1 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.204, allocations: 96.88 kB / 426.2 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.204, allocations: 11.94 kB / 426.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.2043, allocations: 36.03 kB / 426.2 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.2043, allocations: 15.98 kB / 426.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2044, allocations: 0 / 426.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.613e-05/0.2045, allocations: 161.6 kB / 426.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2045, allocations: 0 / 426.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003869/0.2049, allocations: 79.84 kB / 426.5 MB, free: 8.617 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003067/0.2079, allocations: 1.465 MB / 428 MB, free: 7.129 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.2093, allocations: 474.4 kB / 428.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2093, allocations: 0 / 428.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000926/0.2102, allocations: 350.5 kB / 428.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.2105, allocations: 39 kB / 428.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.2148, allocations: 2.02 MB / 430.8 MB, free: 4.188 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.2149, allocations: 0.7437 MB / 431.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.056e-05/0.215, allocations: 67.41 kB / 431.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.215, allocations: 4 kB / 431.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.863/3.078, allocations: 4.807 MB / 436.4 MB, free: 14.54 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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