Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009305/0.0009307, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008488/0.0008489, allocations: 98.33 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003407, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2314, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002535/0.234, allocations: 2.259 MB / 377.4 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.2352, allocations: 0.6767 MB / 378.1 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.2354, allocations: 8.062 kB / 378.1 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2355, allocations: 35.62 kB / 378.2 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.2357, allocations: 60.81 kB / 378.2 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.236, allocations: 81.86 kB / 378.3 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.2363, allocations: 321.1 kB / 378.6 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.2365, allocations: 76.98 kB / 378.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.2367, allocations: 113.6 kB / 378.8 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.2369, allocations: 142.1 kB / 378.9 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.237, allocations: 15.62 kB / 379 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.635e-05/0.237, allocations: 16 kB / 379 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.2371, allocations: 51.06 kB / 379 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2372, allocations: 147.1 kB / 379.2 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.2375, allocations: 246.5 kB / 379.4 MB, free: 42.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2375, allocations: 1.125 kB / 379.4 MB, free: 42.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2375, allocations: 11.88 kB / 379.4 MB, free: 42.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2375, allocations: 0 / 379.4 MB, free: 42.2 MB / 298.7 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.001327/0.2388, allocations: 0.6098 MB / 380 MB, free: 41.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.2389, allocations: 8.906 kB / 380 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.581e-05/0.239, allocations: 53.95 kB / 380.1 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.239, allocations: 26.47 kB / 380.1 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.2393, allocations: 261.6 kB / 380.4 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2393, allocations: 20.44 kB / 380.4 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.2394, allocations: 17.31 kB / 380.4 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006648/0.2401, allocations: 312.5 kB / 380.7 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2401, allocations: 0 / 380.7 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.2401, allocations: 6.656 kB / 380.7 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2401, allocations: 5.594 kB / 380.7 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/0.2409, allocations: 287.4 kB / 381 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.2425, allocations: 1.073 MB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.2444, allocations: 481.2 kB / 382.6 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.2448, allocations: 158.8 kB / 382.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.2448, allocations: 5.391 kB / 382.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.938e-05/0.2448, allocations: 35.97 kB / 382.7 MB, free: 39.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.545e-06/0.2449, allocations: 0 / 382.7 MB, free: 39.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004801/0.2497, allocations: 1.131 MB / 383.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.2497, allocations: 57.31 kB / 383.9 MB, free: 39.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.25, allocations: 210.7 kB / 384.1 MB, free: 39.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.25, allocations: 30.89 kB / 384.2 MB, free: 39.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2501, allocations: 160.1 kB / 384.3 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.2501, allocations: 45.39 kB / 384.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.2501, allocations: 5.156 kB / 384.4 MB, free: 38.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.2502, allocations: 339 kB / 384.7 MB, free: 38.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.2505, allocations: 111.9 kB / 384.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.2509, allocations: 134.3 kB / 384.9 MB, free: 38.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.2515, allocations: 244.5 kB / 385.2 MB, free: 38.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2515, allocations: 3.938 kB / 385.2 MB, free: 38.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002704/0.2543, allocations: 0.6969 MB / 385.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.2543, allocations: 4 kB / 385.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.2543, allocations: 0 / 385.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007286/0.2551, allocations: 236.6 kB / 386.1 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2552, allocations: 31.98 kB / 386.2 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005933/0.2612, allocations: 2.614 MB / 388.8 MB, free: 34.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.2616, allocations: 43.88 kB / 388.8 MB, free: 34.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.2616, allocations: 7.984 kB / 388.8 MB, free: 34.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.2619, allocations: 144.8 kB / 389 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.2619, allocations: 23.66 kB / 389 MB, free: 34.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.834e-05/0.262, allocations: 21.53 kB / 389 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.262, allocations: 0 / 389 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.262, allocations: 0 / 389 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.262, allocations: 3.984 kB / 389 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.2624, allocations: 325.4 kB / 389.3 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.2624, allocations: 3.938 kB / 389.3 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.2625, allocations: 31.97 kB / 389.4 MB, free: 34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006105/0.2632, allocations: 236.7 kB / 389.6 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.2632, allocations: 3.984 kB / 389.6 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005675/0.2689, allocations: 2.595 MB / 392.2 MB, free: 31.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2689, allocations: 3.938 kB / 392.2 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003025/0.272, allocations: 0.9175 MB / 393.1 MB, free: 30.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.2721, allocations: 92.89 kB / 393.2 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.2721, allocations: 11.94 kB / 393.2 MB, free: 29.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.2724, allocations: 35.97 kB / 393.2 MB, free: 29.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.2725, allocations: 15.92 kB / 393.3 MB, free: 29.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.2725, allocations: 12.05 kB / 393.3 MB, free: 29.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.2727, allocations: 157.6 kB / 393.4 MB, free: 29.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2727, allocations: 0 / 393.4 MB, free: 29.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004865/0.2732, allocations: 79.84 kB / 393.5 MB, free: 29.67 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003239/0.2764, allocations: 1.454 MB / 395 MB, free: 28.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.2779, allocations: 476.8 kB / 395.4 MB, free: 27.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.278, allocations: 0 / 395.4 MB, free: 27.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.279, allocations: 354.5 kB / 395.8 MB, free: 27.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.2795, allocations: 40.39 kB / 395.8 MB, free: 27.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00473/0.2842, allocations: 2.014 MB / 397.8 MB, free: 25.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.2844, allocations: 0.7437 MB / 398.6 MB, free: 24.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.2845, allocations: 71.41 kB / 398.6 MB, free: 24.42 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2845, allocations: 0 / 398.6 MB, free: 24.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.3, allocations: 4.802 MB / 403.4 MB, free: 19.61 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_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