Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_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.001334/0.001334, allocations: 96.39 kB / 17.58 MB, free: 5.418 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.001364/0.001364, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 51.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/0.0938, allocations: 46.64 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004299/0.09813, allocations: 2.668 MB / 330.1 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.09932, allocations: 0.7021 MB / 330.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.09946, allocations: 4 kB / 330.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.09962, allocations: 39.58 kB / 330.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.09976, allocations: 79.27 kB / 330.9 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.1001, allocations: 107.7 kB / 331 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.1004, allocations: 354.6 kB / 331.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.1006, allocations: 92.69 kB / 331.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.1008, allocations: 143.5 kB / 331.6 MB, free: 172 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.101, allocations: 159.4 kB / 331.7 MB, free: 12 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.1011, allocations: 28.05 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.202e-05/0.1011, allocations: 32 kB / 331.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.305e-05/0.1012, allocations: 75.62 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.1013, allocations: 139.4 kB / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.1016, allocations: 343.1 kB / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1016, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1016, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1016, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.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.00143/0.1031, allocations: 0.6432 MB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1031, allocations: 8.031 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.967e-05/0.1032, allocations: 54.73 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.1033, allocations: 32.56 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.1036, allocations: 248.8 kB / 333.3 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1036, allocations: 16.81 kB / 333.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.1036, allocations: 16.38 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/0.1043, allocations: 310.7 kB / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1043, allocations: 0 / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.1043, allocations: 8 kB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1044, allocations: 12 kB / 333.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.1051, allocations: 265.5 kB / 333.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1067, allocations: 1.073 MB / 335 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.1087, allocations: 442.3 kB / 335.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000397/0.1091, allocations: 140.8 kB / 335.6 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1091, allocations: 7.984 kB / 335.6 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.1092, allocations: 38.56 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 2.264e-06/0.1092, allocations: 0 / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004853/0.114, allocations: 1.014 MB / 336.6 MB, free: 10.87 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.1141, allocations: 51.41 kB / 336.7 MB, free: 10.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.1144, allocations: 220.1 kB / 336.9 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.1144, allocations: 29.7 kB / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1145, allocations: 168.1 kB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.1146, allocations: 47.27 kB / 337.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.555e-05/0.1147, allocations: 33.7 kB / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1149, allocations: 334.8 kB / 337.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.1152, allocations: 99.94 kB / 337.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.1156, allocations: 125.6 kB / 337.7 MB, free: 9.727 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000698/0.1164, allocations: 236.8 kB / 337.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1164, allocations: 3.938 kB / 337.9 MB, free: 9.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002934/0.1193, allocations: 0.6306 MB / 338.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.1194, allocations: 4 kB / 338.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1194, allocations: 0 / 338.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007115/0.1201, allocations: 220.7 kB / 338.8 MB, free: 8.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.1203, allocations: 31.97 kB / 338.8 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006758/0.127, allocations: 2.755 MB / 341.6 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.1274, allocations: 47.81 kB / 341.6 MB, free: 5.652 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1274, allocations: 4 kB / 341.6 MB, free: 5.648 MB / 286.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.0001638/0.1276, allocations: 133.7 kB / 341.8 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/0.1277, allocations: 23.66 kB / 341.8 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.419e-05/0.1277, allocations: 29.52 kB / 341.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1277, allocations: 0 / 341.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1277, allocations: 0 / 341.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1278, allocations: 0 / 341.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003776/0.1281, allocations: 333.4 kB / 342.1 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1281, allocations: 0 / 342.1 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1283, allocations: 31.97 kB / 342.2 MB, free: 5.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/0.1289, allocations: 216.6 kB / 342.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.129, allocations: 8 kB / 342.4 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006597/0.1356, allocations: 2.739 MB / 345.1 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.1356, allocations: 0 / 345.1 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003251/0.1389, allocations: 0.836 MB / 346 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.426e-05/0.139, allocations: 92.86 kB / 346 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.139, allocations: 4 kB / 346 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.1393, allocations: 39.97 kB / 346.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.1394, allocations: 11.98 kB / 346.1 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.1394, allocations: 7.984 kB / 346.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001579/0.1396, allocations: 157.6 kB / 346.3 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1396, allocations: 0 / 346.3 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004907/0.1401, allocations: 79.84 kB / 346.3 MB, free: 0.6875 MB / 286.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.003602/0.1437, allocations: 1.4 MB / 347.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.1452, allocations: 450.5 kB / 348.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1453, allocations: 0 / 348.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.1463, allocations: 330.4 kB / 348.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.1467, allocations: 47.72 kB / 348.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008633/0.1554, allocations: 3.339 MB / 351.9 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.1558, allocations: 0.7437 MB / 352.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.1559, allocations: 17.55 kB / 352.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.873e-05/0.156, allocations: 63.42 kB / 352.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.735e-06/0.1561, allocations: 0 / 352.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03771/0.1938, allocations: 7.223 MB / 359.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.44, allocations: 11.72 kB / 359.9 MB, free: 2.848 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,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