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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 116.4 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 208.9 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.2 MB / 254.5 MB, free: 15.43 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 63.89 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.132, allocations: 53.32 MB / 426.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004077/0.1361, allocations: 2.742 MB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1374, allocations: 0.7168 MB / 430.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.1375, allocations: 4 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1377, allocations: 43.58 kB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.1378, allocations: 79.27 kB / 430.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.1382, allocations: 107.8 kB / 430.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.1386, allocations: 366.5 kB / 430.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.1388, allocations: 68.7 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.139, allocations: 147.5 kB / 430.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.1392, allocations: 163.3 kB / 431.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.1393, allocations: 28 kB / 431.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.1394, allocations: 32 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.168e-05/0.1394, allocations: 71.8 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1396, allocations: 143.3 kB / 431.4 MB, free: 308 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.14, allocations: 354.5 kB / 431.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.14, allocations: 7.922 kB / 431.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.14, allocations: 0 / 431.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.14, allocations: 4 kB / 431.7 MB, free: 15.94 MB / 366.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.001561/0.1416, allocations: 0.6468 MB / 432.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1416, allocations: 12.03 kB / 432.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.792e-05/0.1417, allocations: 50.73 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.1419, allocations: 40.73 kB / 432.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.1423, allocations: 268.9 kB / 432.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1423, allocations: 12.81 kB / 432.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.1424, allocations: 20.38 kB / 432.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.143, allocations: 310.7 kB / 433.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1431, allocations: 0 / 433.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.1431, allocations: 8 kB / 433.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1431, allocations: 4 kB / 433.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.1439, allocations: 273.6 kB / 433.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.1456, allocations: 1.062 MB / 434.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.1476, allocations: 422.3 kB / 434.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/0.148, allocations: 140.7 kB / 434.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.148, allocations: 4 kB / 435 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.148, allocations: 34.56 kB / 435 MB, free: 12.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.148, allocations: 0 / 435 MB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.005212/0.1533, allocations: 1.022 MB / 436 MB, free: 11.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.1533, allocations: 55.41 kB / 436.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002574/0.1536, allocations: 229 kB / 436.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.1536, allocations: 29.7 kB / 436.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.1537, allocations: 160.3 kB / 436.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.863e-05/0.1538, allocations: 43.64 kB / 436.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.1539, allocations: 41.64 kB / 436.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.154, allocations: 334.8 kB / 436.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.1544, allocations: 107.9 kB / 437 MB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003647/0.1548, allocations: 131.6 kB / 437.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.1554, allocations: 219.8 kB / 437.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1555, allocations: 3.938 kB / 437.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002998/0.1584, allocations: 0.6346 MB / 438 MB, free: 9.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1585, allocations: 4 kB / 438 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1585, allocations: 7.938 kB / 438 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007446/0.1592, allocations: 216.7 kB / 438.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.1594, allocations: 35.98 kB / 438.2 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007267/0.1667, allocations: 2.743 MB / 441 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.167, allocations: 35.97 kB / 441 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.167, allocations: 7.984 kB / 441 MB, free: 6.195 MB / 366.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.000183/0.1672, allocations: 137.7 kB / 441.1 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.39e-05/0.1672, allocations: 19.91 kB / 441.2 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.263e-05/0.1673, allocations: 21.83 kB / 441.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1673, allocations: 4 kB / 441.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.1673, allocations: 4 kB / 441.2 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1673, allocations: 0 / 441.2 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/0.1677, allocations: 329.3 kB / 441.5 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.1677, allocations: 4 kB / 441.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.1679, allocations: 27.98 kB / 441.5 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000651/0.1686, allocations: 224.6 kB / 441.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.1686, allocations: 3.984 kB / 441.8 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006999/0.1756, allocations: 2.743 MB / 444.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1756, allocations: 0 / 444.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003372/0.1789, allocations: 0.8461 MB / 445.4 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.526e-05/0.179, allocations: 104.9 kB / 445.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.1791, allocations: 0 / 445.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.1794, allocations: 40.03 kB / 445.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.1794, allocations: 7.984 kB / 445.5 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.1795, allocations: 4 kB / 445.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1796, allocations: 160.5 kB / 445.7 MB, free: 1.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1796, allocations: 4 kB / 445.7 MB, free: 1.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005003/0.1801, allocations: 75.89 kB / 445.7 MB, free: 1.215 MB / 366.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.2041/0.3842, allocations: 1.382 MB / 447.1 MB, free: 24.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.3859, allocations: 439.2 kB / 447.6 MB, free: 24.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3859, allocations: 1.031 kB / 447.6 MB, free: 24.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.3869, allocations: 319.8 kB / 447.9 MB, free: 24.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.3873, allocations: 39.55 kB / 447.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007976/0.3953, allocations: 3.362 MB / 451.3 MB, free: 22.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.3955, allocations: 0.742 MB / 452 MB, free: 22.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.785e-05/0.3956, allocations: 20.8 kB / 452 MB, free: 22.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.227e-05/0.3957, allocations: 67.03 kB / 452.1 MB, free: 22.24 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3957, allocations: 0 / 452.1 MB, free: 22.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04627/0.4419, allocations: 7.383 MB / 459.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.42, allocations: 7.109 kB / 459.5 MB, free: 21.55 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.978658551815897]