Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008243/0.0008243, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003286/0.003286, allocations: 162 kB / 24.69 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8777/0.8777, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.845e-06/2.845e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.221e-05/2.506e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005015/0.00504, allocations: 3.139 MB / 301.6 MB, free: 356 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1387/0.1437, allocations: 0.7617 MB / 302.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.144, allocations: 10.28 kB / 302.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.1442, allocations: 67.55 kB / 302.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.1444, allocations: 143.3 kB / 302.6 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.1447, allocations: 109.8 kB / 302.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004163/0.1451, allocations: 0.5198 MB / 303.2 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1453, allocations: 96.52 kB / 303.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003114/0.1456, allocations: 286 kB / 303.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1458, allocations: 151 kB / 303.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.1458, allocations: 39.38 kB / 303.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.1459, allocations: 40.34 kB / 303.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.022e-05/0.1459, allocations: 95.05 kB / 303.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.1461, allocations: 148.3 kB / 304 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.1465, allocations: 0.507 MB / 304.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1465, allocations: 1.641 kB / 304.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1465, allocations: 0 / 304.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.1465, allocations: 0 / 304.5 MB, free: 12.8 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000783/0.1473, allocations: 0.6503 MB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1474, allocations: 8.812 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.742e-05/0.1474, allocations: 69.5 kB / 305.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.365e-05/0.1475, allocations: 49.5 kB / 305.3 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.1478, allocations: 256.2 kB / 305.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.1479, allocations: 21.41 kB / 305.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.1479, allocations: 33.59 kB / 305.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004699/0.1484, allocations: 434.8 kB / 306 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1484, allocations: 192 / 306 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.1484, allocations: 19.84 kB / 306.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1484, allocations: 8.594 kB / 306.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000364/0.1488, allocations: 266 kB / 306.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.1502, allocations: 1.299 MB / 307.6 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.1504, allocations: 196.8 kB / 307.8 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.1506, allocations: 94.28 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.1506, allocations: 5.688 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1506, allocations: 38.03 kB / 308 MB, free: 10.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.265e-06/0.1506, allocations: 5.016 kB / 308 MB, free: 10.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009047/0.1515, allocations: 476.5 kB / 308.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.1515, allocations: 58.2 kB / 308.5 MB, free: 10.28 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.1518, allocations: 308.6 kB / 308.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.1518, allocations: 32.95 kB / 308.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.1519, allocations: 214.4 kB / 309 MB, free: 9.906 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.1519, allocations: 81.69 kB / 309.1 MB, free: 9.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/0.152, allocations: 47.44 kB / 309.1 MB, free: 9.809 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.027e-05/0.1521, allocations: 340 kB / 309.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1522, allocations: 80.36 kB / 309.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.1523, allocations: 121.3 kB / 309.7 MB, free: 9.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.1526, allocations: 205.1 kB / 309.9 MB, free: 9.273 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1526, allocations: 1.406 kB / 309.9 MB, free: 9.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004439/0.153, allocations: 354.5 kB / 310.2 MB, free: 9.098 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.153, allocations: 6.156 kB / 310.2 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.153, allocations: 1.859 kB / 310.2 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000321/0.1533, allocations: 119 kB / 310.3 MB, free: 9.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.1535, allocations: 35.94 kB / 310.4 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.1556, allocations: 4.64 MB / 315 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.1557, allocations: 31.47 kB / 315.1 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.1557, allocations: 7.047 kB / 315.1 MB, free: 4.574 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.1559, allocations: 143.5 kB / 315.2 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.655e-05/0.1559, allocations: 36.59 kB / 315.2 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.937e-05/0.1559, allocations: 38.77 kB / 315.3 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1559, allocations: 7 kB / 315.3 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1559, allocations: 1.312 kB / 315.3 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1559, allocations: 1.312 kB / 315.3 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.1563, allocations: 306.9 kB / 315.6 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1563, allocations: 1.375 kB / 315.6 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.1563, allocations: 23.41 kB / 315.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.1566, allocations: 118.2 kB / 315.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.1566, allocations: 1.688 kB / 315.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.1584, allocations: 4.637 MB / 320.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1584, allocations: 0.7031 kB / 320.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.1588, allocations: 403.5 kB / 320.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.732e-05/0.1589, allocations: 54.11 kB / 320.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.159, allocations: 5.922 kB / 320.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.1591, allocations: 25.52 kB / 320.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.896e-05/0.1592, allocations: 33.55 kB / 320.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1592, allocations: 7.094 kB / 320.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001974/0.1594, allocations: 220.3 kB / 321.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1594, allocations: 0 / 321.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005395/0.1599, allocations: 110.6 kB / 321.2 MB, free: 15.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006925/0.1606, allocations: 0.9342 MB / 322.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.1613, allocations: 0.561 MB / 322.7 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1613, allocations: 0 / 322.7 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.1616, allocations: 474.6 kB / 323.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.162, allocations: 59 kB / 323.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.1654, allocations: 3.116 MB / 326.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.1656, allocations: 205.2 kB / 326.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.1657, allocations: 21.86 kB / 326.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1658, allocations: 110.7 kB / 326.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of SimCode: time 9.61e-07/0.1658, allocations: 4 kB / 326.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.2058, allocations: 9.351 MB / 336 MB, free: 7.031 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/7.928, allocations: 1.375 kB / 336 MB, free: 7.031 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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: 9.559708138927817]