Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_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.001539/0.001539, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.002056/0.002056, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.679/1.679, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 51.69 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.129, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.006484/0.1355, allocations: 2.697 MB / 352.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1376, allocations: 0.6739 MB / 353.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004132/0.1381, allocations: 4 kB / 353.5 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1383, allocations: 39.58 kB / 353.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.1387, allocations: 87.25 kB / 353.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.1391, allocations: 95.8 kB / 353.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004537/0.1396, allocations: 354.5 kB / 354.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.1398, allocations: 88.7 kB / 354.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.1401, allocations: 147.5 kB / 354.3 MB, free: 148 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002926/0.1404, allocations: 163.4 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.988e-05/0.1405, allocations: 32 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.1406, allocations: 28 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.375e-05/0.1407, allocations: 71.75 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.1409, allocations: 147.2 kB / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005459/0.1414, allocations: 335.1 kB / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1414, allocations: 0 / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1414, allocations: 0 / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.02e-05/0.1415, allocations: 0 / 355.1 MB, free: 15.38 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.001941/0.1434, allocations: 0.647 MB / 355.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.1435, allocations: 12.03 kB / 355.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.1436, allocations: 50.73 kB / 355.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.1437, allocations: 28.66 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004672/0.1442, allocations: 256.7 kB / 356.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.1442, allocations: 16.81 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.1443, allocations: 20.38 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008089/0.1451, allocations: 306.7 kB / 356.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1451, allocations: 0 / 356.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.1452, allocations: 15.94 kB / 356.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1452, allocations: 4 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008567/0.1461, allocations: 265.6 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.1483, allocations: 1.066 MB / 357.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002071/0.1504, allocations: 438.3 kB / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.1508, allocations: 148.7 kB / 358.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.1509, allocations: 3.984 kB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.151, allocations: 38.56 kB / 358.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.804e-06/0.151, allocations: 0 / 358.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00535/0.1563, allocations: 1.03 MB / 359.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.1564, allocations: 59.41 kB / 359.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.1567, allocations: 212.2 kB / 359.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.1567, allocations: 25.7 kB / 359.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1569, allocations: 160.1 kB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.157, allocations: 55.27 kB / 359.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.1571, allocations: 29.7 kB / 359.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1572, allocations: 330.8 kB / 360.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.1576, allocations: 103.9 kB / 360.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.1579, allocations: 129.6 kB / 360.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006651/0.1586, allocations: 217.6 kB / 360.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1586, allocations: 7.875 kB / 360.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003314/0.1619, allocations: 0.6448 MB / 361.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.162, allocations: 4 kB / 361.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.162, allocations: 4 kB / 361.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008924/0.1629, allocations: 216.7 kB / 361.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1631, allocations: 35.97 kB / 361.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008189/0.1713, allocations: 2.75 MB / 364.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.1717, allocations: 43.91 kB / 364.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.1717, allocations: 4 kB / 364.4 MB, free: 5.621 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.0002394/0.172, allocations: 133.7 kB / 364.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1721, allocations: 23.72 kB / 364.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.428e-05/0.1722, allocations: 25.52 kB / 364.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1722, allocations: 0 / 364.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1722, allocations: 4 kB / 364.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1722, allocations: 0 / 364.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.1727, allocations: 325.4 kB / 364.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1727, allocations: 0 / 364.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.1729, allocations: 31.97 kB / 364.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006853/0.1736, allocations: 216.7 kB / 365.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.1736, allocations: 8 kB / 365.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007121/0.1808, allocations: 2.739 MB / 367.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1808, allocations: 0 / 367.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.1842, allocations: 0.8472 MB / 368.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.1844, allocations: 96.89 kB / 368.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.1845, allocations: 0 / 368.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.1848, allocations: 39.97 kB / 368.9 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.1849, allocations: 11.98 kB / 368.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.1849, allocations: 7.984 kB / 368.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.1851, allocations: 153.9 kB / 369 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1851, allocations: 0 / 369 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005087/0.1856, allocations: 79.84 kB / 369.1 MB, free: 0.6602 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.2621/0.4477, allocations: 1.382 MB / 370.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.4497, allocations: 449.3 kB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.4497, allocations: 0.625 kB / 370.9 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.4509, allocations: 332.4 kB / 371.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006688/0.4516, allocations: 32.61 kB / 371.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009869/0.4615, allocations: 3.339 MB / 374.6 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.4618, allocations: 0.7479 MB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.4619, allocations: 15.91 kB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.462, allocations: 69.39 kB / 375.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.462, allocations: 0 / 375.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.4974, allocations: 7.219 MB / 382.7 MB, free: 21.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.58, allocations: 11.41 kB / 382.7 MB, free: 21.14 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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