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.00209/0.00209, allocations: 113.2 kB / 17.73 MB, free: 5.301 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.002761/0.002761, allocations: 188.2 kB / 18.66 MB, free: 4.375 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.652/1.652, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001695/0.001695, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1117, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004516/0.1162, allocations: 2.672 MB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1178, allocations: 0.7057 MB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.118, allocations: 4 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.1182, allocations: 43.58 kB / 378.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1184, allocations: 75.27 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.1188, allocations: 107.8 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.1192, allocations: 358.5 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.1195, allocations: 92.58 kB / 378.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002531/0.1197, allocations: 135.5 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.12, allocations: 167.4 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.086e-05/0.1201, allocations: 32 kB / 379 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.952e-05/0.1201, allocations: 32 kB / 379.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.1202, allocations: 67.75 kB / 379.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.1204, allocations: 151.3 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.1208, allocations: 346.6 kB / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1208, allocations: 0 / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1208, allocations: 0 / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1209, allocations: 0 / 379.6 MB, free: 88 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.1905/0.3114, allocations: 0.6412 MB / 380.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3114, allocations: 9.5 kB / 380.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.3115, allocations: 54.14 kB / 380.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.312e-05/0.3116, allocations: 30.5 kB / 380.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.3119, allocations: 265.4 kB / 380.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.3119, allocations: 12.28 kB / 380.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.312, allocations: 20.33 kB / 380.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006537/0.3127, allocations: 295.7 kB / 380.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3127, allocations: 6.094 kB / 380.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.3127, allocations: 14.75 kB / 380.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.3127, allocations: 5.125 kB / 380.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007835/0.3135, allocations: 270.8 kB / 381.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.3152, allocations: 1.055 MB / 382.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/0.3174, allocations: 439.7 kB / 382.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004257/0.3178, allocations: 148.2 kB / 382.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.3178, allocations: 1.844 kB / 382.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.3179, allocations: 37.34 kB / 382.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.3179, allocations: 0 / 382.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004945/0.3228, allocations: 1.021 MB / 383.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.3229, allocations: 56.56 kB / 384 MB, free: 11.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.3232, allocations: 221.7 kB / 384.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.3232, allocations: 25.7 kB / 384.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.888e-05/0.3233, allocations: 160.8 kB / 384.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.954e-05/0.3233, allocations: 60.42 kB / 384.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.086e-05/0.3234, allocations: 32.84 kB / 384.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.897e-05/0.3235, allocations: 331 kB / 384.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.3238, allocations: 105.6 kB / 384.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.3242, allocations: 122.3 kB / 385 MB, free: 11.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006613/0.3249, allocations: 232.4 kB / 385.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3249, allocations: 4.938 kB / 385.2 MB, free: 11 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002947/0.3278, allocations: 0.6352 MB / 385.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3279, allocations: 8.281 kB / 385.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.3279, allocations: 1.25 kB / 385.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008198/0.3287, allocations: 219.9 kB / 386.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.3289, allocations: 36.62 kB / 386.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006662/0.3356, allocations: 2.745 MB / 388.9 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.3359, allocations: 45.58 kB / 388.9 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.336, allocations: 7 kB / 388.9 MB, free: 8.977 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.0001442/0.3361, allocations: 140.1 kB / 389 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.3362, allocations: 21.17 kB / 389.1 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.64e-05/0.3362, allocations: 25.67 kB / 389.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3362, allocations: 1.312 kB / 389.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3362, allocations: 0 / 389.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3362, allocations: 2.625 kB / 389.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.3366, allocations: 333.7 kB / 389.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3366, allocations: 0 / 389.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.3368, allocations: 32.61 kB / 389.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006775/0.3375, allocations: 214.9 kB / 389.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.3375, allocations: 8.938 kB / 389.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006155/0.3437, allocations: 2.738 MB / 392.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3437, allocations: 3.281 kB / 392.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/0.3469, allocations: 0.8475 MB / 393.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.931e-05/0.3471, allocations: 90.73 kB / 393.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.3471, allocations: 5.766 kB / 393.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/0.3474, allocations: 29.97 kB / 393.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.3475, allocations: 18.77 kB / 393.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.3475, allocations: 5.188 kB / 393.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001932/0.3477, allocations: 161.8 kB / 393.6 MB, free: 6.188 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3477, allocations: 3.938 kB / 393.6 MB, free: 6.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005723/0.3483, allocations: 78.67 kB / 393.6 MB, free: 6.172 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.003561/0.3519, allocations: 1.394 MB / 395 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.3535, allocations: 453.9 kB / 395.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3535, allocations: 1.25 kB / 395.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.3545, allocations: 324.1 kB / 395.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.3549, allocations: 39.22 kB / 395.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008825/0.3638, allocations: 3.337 MB / 399.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.3641, allocations: 0.7434 MB / 399.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.3642, allocations: 12.56 kB / 399.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3643, allocations: 69.97 kB / 400 MB, free: 2.477 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3643, allocations: 0 / 400 MB, free: 2.477 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.4024, allocations: 7.323 MB / 407.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.56, allocations: 13.05 kB / 407.3 MB, free: 14.79 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