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.001082/0.001082, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 227.4 MB / 246.3 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.98 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08369/0.08493, allocations: 50.52 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00359/0.08855, allocations: 2.779 MB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.08975, allocations: 0.709 MB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.08992, allocations: 7.938 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.09009, allocations: 35.75 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.09025, allocations: 67.45 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.09053, allocations: 95.83 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.09085, allocations: 342.6 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.09103, allocations: 77.08 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.09128, allocations: 135.5 kB / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.09147, allocations: 155.4 kB / 361.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.09152, allocations: 16 kB / 361.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.915e-05/0.0916, allocations: 24 kB / 361.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.132e-05/0.09166, allocations: 59.69 kB / 361.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.0918, allocations: 135.3 kB / 361.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.09209, allocations: 331.1 kB / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.0921, allocations: 0 / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.09211, allocations: 0 / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.09212, allocations: 0 / 361.8 MB, free: 9.23 MB / 302.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.001407/0.09353, allocations: 0.6491 MB / 362.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.09358, allocations: 8.031 kB / 362.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.09364, allocations: 58.73 kB / 362.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.09382, allocations: 40.64 kB / 362.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.09409, allocations: 264.6 kB / 362.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.09412, allocations: 12.81 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.09416, allocations: 20.38 kB / 362.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.09481, allocations: 306.7 kB / 363.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.09483, allocations: 0 / 363.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.09486, allocations: 8 kB / 363.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.09487, allocations: 4 kB / 363.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007767/0.09566, allocations: 273.5 kB / 363.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.09722, allocations: 1.062 MB / 364.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.09918, allocations: 442.2 kB / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003843/0.09958, allocations: 152.7 kB / 365.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.09961, allocations: 3.984 kB / 365.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.09964, allocations: 38.56 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.09965, allocations: 0 / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005171/0.1048, allocations: 1.018 MB / 366.1 MB, free: 4.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.1049, allocations: 55.41 kB / 366.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.1051, allocations: 221 kB / 366.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.1051, allocations: 25.7 kB / 366.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.774e-05/0.1052, allocations: 164.1 kB / 366.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.1052, allocations: 47.34 kB / 366.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-05/0.1053, allocations: 37.69 kB / 366.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.1054, allocations: 326.8 kB / 367 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.1058, allocations: 107.9 kB / 367.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.1061, allocations: 129.5 kB / 367.2 MB, free: 3.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006709/0.1068, allocations: 236.4 kB / 367.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1068, allocations: 3.938 kB / 367.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002988/0.1098, allocations: 0.6306 MB / 368.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1099, allocations: 8 kB / 368.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1099, allocations: 3.938 kB / 368.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007009/0.1106, allocations: 216.7 kB / 368.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.1108, allocations: 27.98 kB / 368.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1466/0.2573, allocations: 2.487 MB / 370.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.2577, allocations: 38.64 kB / 370.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.2578, allocations: 6.297 kB / 370.9 MB, free: 19.23 MB / 302.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.0001809/0.258, allocations: 141.9 kB / 371 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-05/0.2581, allocations: 22.02 kB / 371 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.12e-05/0.2581, allocations: 25.02 kB / 371.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2582, allocations: 3.828 kB / 371.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2582, allocations: 0 / 371.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2582, allocations: 1.5 kB / 371.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004265/0.2586, allocations: 322.9 kB / 371.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2586, allocations: 2.062 kB / 371.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.2588, allocations: 28.98 kB / 371.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007593/0.2596, allocations: 222.9 kB / 371.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.2596, allocations: 7.359 kB / 371.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006779/0.2664, allocations: 2.49 MB / 374.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2664, allocations: 0 / 374.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0035/0.2699, allocations: 0.8408 MB / 375 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-05/0.27, allocations: 97.11 kB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.2701, allocations: 1.719 kB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.2704, allocations: 37 kB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.2704, allocations: 11.14 kB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.2705, allocations: 10.03 kB / 375.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000164/0.2706, allocations: 160.1 kB / 375.3 MB, free: 17.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2706, allocations: 0 / 375.3 MB, free: 17.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005458/0.2712, allocations: 85.03 kB / 375.4 MB, free: 17.28 MB / 302.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.003503/0.2747, allocations: 1.382 MB / 376.7 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.2763, allocations: 449.1 kB / 377.2 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2763, allocations: 0 / 377.2 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.2774, allocations: 330.8 kB / 377.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004239/0.2779, allocations: 40.97 kB / 377.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008497/0.2864, allocations: 3.434 MB / 381 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.2866, allocations: 0.7424 MB / 381.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.2867, allocations: 21.34 kB / 381.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.895e-05/0.2868, allocations: 69.89 kB / 381.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2868, allocations: 0 / 381.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.3113, allocations: 6.838 MB / 388.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/0.3116, allocations: 241.7 kB / 388.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.189, allocations: 1.125 kB / 388.9 MB, free: 11.32 MB / 302.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