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.001484/0.001484, allocations: 109.4 kB / 17.73 MB, free: 5.324 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.001665/0.001665, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.627/1.627, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001326/0.001326, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004863/0.1122, allocations: 2.66 MB / 377.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.114, allocations: 0.7135 MB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003335/0.1143, allocations: 4 kB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.1146, allocations: 43.56 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.1149, allocations: 75.28 kB / 378.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004579/0.1154, allocations: 103.8 kB / 378.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000596/0.116, allocations: 366.4 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002585/0.1163, allocations: 92.91 kB / 378.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000308/0.1166, allocations: 139.5 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.1169, allocations: 163.3 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.174e-05/0.1169, allocations: 32 kB / 379 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.117, allocations: 28 kB / 379 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.1171, allocations: 79.73 kB / 379.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.1173, allocations: 135.4 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1176, allocations: 346.8 kB / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1177, allocations: 0 / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1177, allocations: 0 / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.1177, allocations: 0 / 379.6 MB, free: 96 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.1952/0.3129, allocations: 0.6406 MB / 380.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.313, allocations: 9.625 kB / 380.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.922e-05/0.3131, allocations: 55.7 kB / 380.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.3132, allocations: 27.78 kB / 380.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.3135, allocations: 259.9 kB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3135, allocations: 15.19 kB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.3136, allocations: 23.08 kB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/0.3142, allocations: 296.1 kB / 380.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3142, allocations: 7.5 kB / 380.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.3143, allocations: 9.312 kB / 380.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.3143, allocations: 7.75 kB / 380.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000754/0.315, allocations: 266.5 kB / 381.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.3167, allocations: 1.051 MB / 382.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.3188, allocations: 441.2 kB / 382.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003947/0.3192, allocations: 145.7 kB / 382.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.3192, allocations: 5.297 kB / 382.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3193, allocations: 40.89 kB / 382.9 MB, free: 11.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.395e-06/0.3193, allocations: 0 / 382.9 MB, free: 11.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005014/0.3243, allocations: 1.02 MB / 383.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.3244, allocations: 54.31 kB / 383.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.3247, allocations: 213.1 kB / 384.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.3247, allocations: 31.14 kB / 384.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3248, allocations: 168.3 kB / 384.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.82e-05/0.3249, allocations: 49.17 kB / 384.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.325, allocations: 38.69 kB / 384.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.239e-05/0.3251, allocations: 329.6 kB / 384.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.3254, allocations: 105.1 kB / 384.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.3258, allocations: 126.9 kB / 385 MB, free: 10.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006886/0.3265, allocations: 229.3 kB / 385.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3265, allocations: 0 / 385.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002934/0.3294, allocations: 0.6332 MB / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3295, allocations: 6.562 kB / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3295, allocations: 0.875 kB / 385.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007889/0.3303, allocations: 220.5 kB / 386 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.3305, allocations: 40.91 kB / 386.1 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006703/0.3372, allocations: 2.748 MB / 388.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.3376, allocations: 33.39 kB / 388.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.3376, allocations: 10.44 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.0001602/0.3378, allocations: 143.2 kB / 389 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.3379, allocations: 17.72 kB / 389 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.3379, allocations: 21.77 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.338, allocations: 1.312 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.338, allocations: 1.766 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.338, allocations: 0.6094 kB / 389.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.3384, allocations: 326.3 kB / 389.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3384, allocations: 0.6094 kB / 389.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.3386, allocations: 39.92 kB / 389.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.3393, allocations: 215.3 kB / 389.6 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.3393, allocations: 8.109 kB / 389.6 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006466/0.3458, allocations: 2.74 MB / 392.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3458, allocations: 0 / 392.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.3491, allocations: 0.8546 MB / 393.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.3492, allocations: 95.44 kB / 393.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.3493, allocations: 1.578 kB / 393.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.3496, allocations: 33.53 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.3496, allocations: 8.734 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.3497, allocations: 5.219 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.3498, allocations: 165.1 kB / 393.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3498, allocations: 0 / 393.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000485/0.3503, allocations: 78.06 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.003419/0.3537, allocations: 1.386 MB / 395 MB, free: 5.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3553, allocations: 456.7 kB / 395.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3553, allocations: 0 / 395.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.3563, allocations: 327.7 kB / 395.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.3567, allocations: 38 kB / 395.8 MB, free: 4.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008143/0.3649, allocations: 3.335 MB / 399.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.3651, allocations: 0.742 MB / 399.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.79e-05/0.3652, allocations: 16.56 kB / 399.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.772e-05/0.3653, allocations: 70.94 kB / 400 MB, free: 2.227 MB / 318.1 MB Notification: Performance of SimCode: time 1.512e-06/0.3653, allocations: 0 / 400 MB, free: 2.227 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.113/0.4784, allocations: 7.515 MB / 407.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.38, allocations: 13.02 kB / 407.5 MB, free: 14.44 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