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.00165/0.00165, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001991/0.001991, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 67.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2249, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003819/0.2288, allocations: 2.725 MB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2301, allocations: 0.7128 MB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2302, allocations: 8 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2303, allocations: 43.58 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.2305, allocations: 75.27 kB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.2308, allocations: 107.8 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000398/0.2313, allocations: 358.6 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.2315, allocations: 96.62 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.2317, allocations: 147.5 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.2319, allocations: 163.3 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.232, allocations: 32 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.2321, allocations: 35.98 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-05/0.2322, allocations: 67.81 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2323, allocations: 143.3 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.2327, allocations: 357.5 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.2328, allocations: 4 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2328, allocations: 0 / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.908e-06/0.2328, allocations: 0 / 413.9 MB, free: 12.43 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.001435/0.2342, allocations: 0.643 MB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2343, allocations: 8.031 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.628e-05/0.2343, allocations: 58.67 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.2345, allocations: 44.73 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.2349, allocations: 260.9 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.2349, allocations: 16.81 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.235, allocations: 16.38 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.2356, allocations: 306.7 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2356, allocations: 0 / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.2357, allocations: 7.938 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2357, allocations: 8 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000788/0.2365, allocations: 265.6 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2382, allocations: 1.066 MB / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.2401, allocations: 434.3 kB / 417 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.2406, allocations: 148.8 kB / 417.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.2406, allocations: 3.984 kB / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.2406, allocations: 38.5 kB / 417.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.2406, allocations: 0 / 417.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004843/0.2455, allocations: 1.018 MB / 418.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.2456, allocations: 59.39 kB / 418.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.2458, allocations: 221 kB / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.2459, allocations: 29.64 kB / 418.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.246, allocations: 164.2 kB / 418.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.246, allocations: 47.64 kB / 418.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.115e-05/0.2461, allocations: 37.66 kB / 418.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2463, allocations: 334.8 kB / 419.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.2467, allocations: 103.9 kB / 419.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.2471, allocations: 133.5 kB / 419.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006817/0.2477, allocations: 224.6 kB / 419.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.2478, allocations: 3.938 kB / 419.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002829/0.2506, allocations: 0.6307 MB / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.2506, allocations: 8 kB / 420.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2506, allocations: 0 / 420.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007529/0.2514, allocations: 212.7 kB / 420.4 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.2516, allocations: 39.91 kB / 420.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006802/0.2584, allocations: 2.754 MB / 423.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.2587, allocations: 43.83 kB / 423.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.2587, allocations: 4 kB / 423.2 MB, free: 2.66 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.0001614/0.2589, allocations: 133.8 kB / 423.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.259, allocations: 15.91 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.451e-05/0.259, allocations: 29.89 kB / 423.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.259, allocations: 7.938 kB / 423.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2591, allocations: 96 / 423.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2591, allocations: 3.984 kB / 423.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.2595, allocations: 329.3 kB / 423.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2595, allocations: 0 / 423.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.2596, allocations: 31.97 kB / 423.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.2603, allocations: 220.7 kB / 424 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.2603, allocations: 0 / 424 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006635/0.267, allocations: 2.735 MB / 426.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.267, allocations: 0 / 426.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.2702, allocations: 0.8473 MB / 427.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.2703, allocations: 104.9 kB / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.2704, allocations: 0 / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.2706, allocations: 40.03 kB / 427.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.084e-05/0.2707, allocations: 11.98 kB / 427.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2707, allocations: 0 / 427.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.2709, allocations: 164.5 kB / 427.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2709, allocations: 0 / 427.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000446/0.2714, allocations: 79.89 kB / 427.9 MB, free: 13.68 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.003546/0.2749, allocations: 1.388 MB / 429.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.2765, allocations: 454.4 kB / 429.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2765, allocations: 0 / 429.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.2776, allocations: 326.5 kB / 430.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.278, allocations: 40.59 kB / 430.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008549/0.2865, allocations: 3.363 MB / 433.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.2869, allocations: 0.7476 MB / 434.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.627e-05/0.287, allocations: 13.53 kB / 434.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.954e-05/0.2871, allocations: 67.41 kB / 434.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2871, allocations: 4 kB / 434.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03369/0.3208, allocations: 7.343 MB / 441.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.16, allocations: 18.67 kB / 441.7 MB, free: 15.93 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.1.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