Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00123/0.00123, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003714/0.3037, allocations: 2.718 MB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3052, allocations: 0.7129 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.3053, allocations: 7.938 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.3055, allocations: 39.58 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.3057, allocations: 79.27 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004054/0.3061, allocations: 111.8 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.3065, allocations: 362.5 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.3068, allocations: 84.7 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002806/0.307, allocations: 143.5 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.3073, allocations: 171.3 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.21e-05/0.3073, allocations: 32 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.022e-05/0.3074, allocations: 36 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.745e-05/0.3075, allocations: 63.81 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.3076, allocations: 147.3 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003813/0.308, allocations: 356.4 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.308, allocations: 0 / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3081, allocations: 0 / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.3081, allocations: 0 / 413.8 MB, free: 12.48 MB / 334.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.001445/0.3095, allocations: 0.6432 MB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.3096, allocations: 8.031 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.895e-05/0.3097, allocations: 58.67 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3099, allocations: 40.55 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.3102, allocations: 268.7 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3103, allocations: 12.81 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.3103, allocations: 24.38 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.3109, allocations: 298.7 kB / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.311, allocations: 0 / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.311, allocations: 12 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.311, allocations: 7.984 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007299/0.3118, allocations: 265.6 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.3134, allocations: 1.058 MB / 416.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001895/0.3153, allocations: 438.3 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003863/0.3157, allocations: 152.7 kB / 417 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.3157, allocations: 7.984 kB / 417.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.3158, allocations: 34.55 kB / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.3158, allocations: 0 / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004717/0.3205, allocations: 1.022 MB / 418.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3206, allocations: 55.41 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3208, allocations: 221 kB / 418.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.3208, allocations: 29.7 kB / 418.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.3209, allocations: 156.1 kB / 418.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.3209, allocations: 51.25 kB / 418.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.183e-05/0.321, allocations: 41.69 kB / 418.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3212, allocations: 330.8 kB / 419 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.3215, allocations: 103.9 kB / 419.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.3219, allocations: 121.6 kB / 419.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006629/0.3225, allocations: 224.7 kB / 419.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3225, allocations: 11.88 kB / 419.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00277/0.3253, allocations: 0.6305 MB / 420.1 MB, free: 5.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3254, allocations: 8 kB / 420.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3254, allocations: 0 / 420.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007256/0.3261, allocations: 220.7 kB / 420.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.3263, allocations: 31.98 kB / 420.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/0.3328, allocations: 2.739 MB / 423.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.3331, allocations: 35.92 kB / 423.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.3331, allocations: 15.92 kB / 423.1 MB, free: 2.727 MB / 334.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.0001534/0.3333, allocations: 137.7 kB / 423.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.3333, allocations: 19.72 kB / 423.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.732e-05/0.3334, allocations: 25.83 kB / 423.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3334, allocations: 4.094 kB / 423.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.3334, allocations: 0 / 423.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3334, allocations: 3.984 kB / 423.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003496/0.3338, allocations: 337.2 kB / 423.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3338, allocations: 0 / 423.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.3339, allocations: 27.98 kB / 423.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006476/0.3346, allocations: 216.6 kB / 423.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.3346, allocations: 0 / 423.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00635/0.341, allocations: 2.739 MB / 426.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.341, allocations: 0 / 426.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003143/0.3442, allocations: 0.8434 MB / 427.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.093e-05/0.3443, allocations: 100.9 kB / 427.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.3443, allocations: 4 kB / 427.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.3446, allocations: 31.97 kB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.3446, allocations: 12.05 kB / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.3447, allocations: 8 kB / 427.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001371/0.3448, allocations: 164.5 kB / 427.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3448, allocations: 0 / 427.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.3453, allocations: 83.75 kB / 427.8 MB, free: 13.75 MB / 350.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.00338/0.3486, allocations: 1.387 MB / 429.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.3502, allocations: 450.4 kB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3502, allocations: 0 / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3512, allocations: 330.5 kB / 430 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.3516, allocations: 36.58 kB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008434/0.3601, allocations: 3.356 MB / 433.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.3604, allocations: 0.7437 MB / 434.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.207e-05/0.3605, allocations: 17.53 kB / 434.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3606, allocations: 71.41 kB / 434.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3606, allocations: 0 / 434.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3896, allocations: 7.522 MB / 441.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 10.91 kB / 441.7 MB, free: 15.84 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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