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.001265/0.001265, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001422/0.001422, allocations: 191 kB / 18.66 MB, free: 4.445 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.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001255/0.001255, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09826, allocations: 46.61 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004572/0.1029, allocations: 2.664 MB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.1044, allocations: 0.7135 MB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.1046, allocations: 4 kB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.1048, allocations: 39.58 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.105, allocations: 83.27 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.1054, allocations: 99.8 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004568/0.1059, allocations: 358.5 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.1061, allocations: 96.84 kB / 378.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.1064, allocations: 135.5 kB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.1067, allocations: 167.4 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.561e-05/0.1068, allocations: 32 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.1069, allocations: 28 kB / 379 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.107, allocations: 71.75 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.1072, allocations: 151.3 kB / 379.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.1075, allocations: 338.8 kB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.859e-06/0.1076, allocations: 7.984 kB / 379.6 MB, free: 100 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1076, allocations: 0 / 379.6 MB, free: 100 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1076, allocations: 0 / 379.6 MB, free: 100 kB / 318.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.1861/0.2937, allocations: 0.6345 MB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.2938, allocations: 10.28 kB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.137e-05/0.2939, allocations: 53.17 kB / 380.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/0.2939, allocations: 27.78 kB / 380.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.2943, allocations: 262.8 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.2943, allocations: 16.5 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.2944, allocations: 19.81 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006443/0.295, allocations: 299.5 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.295, allocations: 6.656 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.2951, allocations: 4.5 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.2951, allocations: 6.062 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007712/0.2959, allocations: 272.9 kB / 381.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.2976, allocations: 1.049 MB / 382.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/0.2998, allocations: 440.1 kB / 382.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004389/0.3002, allocations: 146.9 kB / 382.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3003, allocations: 8.047 kB / 382.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.3003, allocations: 34.44 kB / 382.9 MB, free: 11.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.685e-06/0.3003, allocations: 3.516 kB / 382.9 MB, free: 11.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005167/0.3055, allocations: 1.028 MB / 383.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.3056, allocations: 51.41 kB / 383.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.3058, allocations: 216.7 kB / 384.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3059, allocations: 29.7 kB / 384.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.549e-05/0.306, allocations: 155.8 kB / 384.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.038e-05/0.306, allocations: 55.33 kB / 384.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.3061, allocations: 35.34 kB / 384.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.717e-05/0.3062, allocations: 333.6 kB / 384.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/0.3065, allocations: 105.7 kB / 384.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.3069, allocations: 122.2 kB / 385 MB, free: 10.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006392/0.3075, allocations: 235.7 kB / 385.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3075, allocations: 1.906 kB / 385.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003244/0.3108, allocations: 0.6307 MB / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.3108, allocations: 6.797 kB / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3109, allocations: 0 / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009142/0.3118, allocations: 219.7 kB / 386 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.312, allocations: 37.41 kB / 386.1 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007494/0.3195, allocations: 2.747 MB / 388.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.3199, allocations: 41.72 kB / 388.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.32, allocations: 7.25 kB / 388.9 MB, free: 8.703 MB / 318.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.0001574/0.3201, allocations: 139.6 kB / 389 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.3202, allocations: 21.66 kB / 389 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.982e-05/0.3202, allocations: 21.58 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3202, allocations: 1.094 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3202, allocations: 0 / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3203, allocations: 6.078 kB / 389.1 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.3207, allocations: 325.6 kB / 389.4 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3207, allocations: 1.281 kB / 389.4 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.3209, allocations: 27.86 kB / 389.4 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000708/0.3216, allocations: 227.1 kB / 389.6 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.3217, allocations: 8.172 kB / 389.6 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006775/0.3285, allocations: 2.735 MB / 392.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3285, allocations: 3.875 kB / 392.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.3319, allocations: 0.8452 MB / 393.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3321, allocations: 99.72 kB / 393.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.3321, allocations: 1.125 kB / 393.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.3324, allocations: 41.72 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.3325, allocations: 8.453 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.3325, allocations: 5.266 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.3326, allocations: 162.4 kB / 393.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3326, allocations: 0 / 393.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005323/0.3332, allocations: 81.31 kB / 393.6 MB, free: 5.906 MB / 318.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.00367/0.3369, allocations: 1.388 MB / 395 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.3385, allocations: 451.8 kB / 395.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3386, allocations: 0 / 395.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3397, allocations: 326.7 kB / 395.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3401, allocations: 37.5 kB / 395.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009005/0.3491, allocations: 3.337 MB / 399.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.3495, allocations: 0.745 MB / 399.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.3496, allocations: 17.56 kB / 399.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3497, allocations: 65.75 kB / 400 MB, free: 2.23 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3497, allocations: 0 / 400 MB, free: 2.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.3852, allocations: 7.519 MB / 407.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.19, allocations: 9.078 kB / 407.5 MB, free: 14.45 MB / 334.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