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.001321/0.001321, allocations: 117.5 kB / 19.17 MB, free: 3.922 MB / 14.72 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.001393/0.001393, allocations: 203.9 kB / 22.12 MB, free: 0.9805 MB / 14.72 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 1.697/1.697, allocations: 207.6 MB / 232.5 MB, free: 3.949 MB / 174.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 55.86 kB / 343 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1186, allocations: 49.13 MB / 392.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005993/0.1246, allocations: 3.458 MB / 395.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.1267, allocations: 0.7952 MB / 396.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.127, allocations: 11.88 kB / 396.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002898/0.1273, allocations: 71.36 kB / 396.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.1277, allocations: 134.8 kB / 396.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.1281, allocations: 115.8 kB / 396.7 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007039/0.1288, allocations: 0.5015 MB / 397.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002728/0.1291, allocations: 99.27 kB / 397.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003192/0.1294, allocations: 191.3 kB / 397.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.1297, allocations: 211.1 kB / 397.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-05/0.1298, allocations: 36 kB / 397.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.1e-05/0.1298, allocations: 40 kB / 397.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1299, allocations: 91.62 kB / 397.9 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.1302, allocations: 222.9 kB / 398.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.1308, allocations: 493.9 kB / 398.6 MB, free: 2.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.1308, allocations: 7.984 kB / 398.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1308, allocations: 0 / 398.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1309, allocations: 0 / 398.6 MB, free: 2.227 MB / 318.1 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.001532/0.1324, allocations: 0.732 MB / 399.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.1325, allocations: 8.031 kB / 399.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.476e-05/0.1325, allocations: 8.844 kB / 399.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.293e-05/0.1326, allocations: 70.72 kB / 399.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.1327, allocations: 48.66 kB / 399.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.1333, allocations: 315.5 kB / 399.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1333, allocations: 25.03 kB / 399.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.1334, allocations: 32.38 kB / 399.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007182/0.1341, allocations: 358.7 kB / 400.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.1341, allocations: 0 / 400.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.1341, allocations: 15.94 kB / 400.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.1341, allocations: 8 kB / 400.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.1348, allocations: 266.5 kB / 400.4 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.1371, allocations: 1.415 MB / 401.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.1376, allocations: 206.4 kB / 402 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.1379, allocations: 104.7 kB / 402.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.1379, allocations: 4 kB / 402.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.1379, allocations: 42.5 kB / 402.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.775e-06/0.1379, allocations: 0 / 402.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001785/0.1397, allocations: 0.6906 MB / 402.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.1398, allocations: 55.41 kB / 402.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.1402, allocations: 312.5 kB / 403.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.1403, allocations: 33.64 kB / 403.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.1404, allocations: 212.5 kB / 403.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.432e-05/0.1405, allocations: 79.3 kB / 403.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.1407, allocations: 49.66 kB / 403.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.1409, allocations: 342.8 kB / 403.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.1411, allocations: 83.95 kB / 404 MB, free: 12.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.1413, allocations: 120.2 kB / 404.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00043/0.1417, allocations: 204.1 kB / 404.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1417, allocations: 0 / 404.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008269/0.1426, allocations: 351.6 kB / 404.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.1426, allocations: 8 kB / 404.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1426, allocations: 4.062 kB / 404.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.1431, allocations: 118.4 kB / 404.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.1433, allocations: 27.98 kB / 404.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005479/0.1488, allocations: 4.971 MB / 409.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000328/0.1491, allocations: 31.8 kB / 409.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.1492, allocations: 8 kB / 409.9 MB, free: 6.109 MB / 334.1 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.0002841/0.1495, allocations: 153.8 kB / 410 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.778e-05/0.1495, allocations: 31.81 kB / 410 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.837e-05/0.1496, allocations: 39.17 kB / 410.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1496, allocations: 0 / 410.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1496, allocations: 4 kB / 410.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.1496, allocations: 3.984 kB / 410.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005148/0.1501, allocations: 373.2 kB / 410.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1502, allocations: 0 / 410.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1503, allocations: 27.97 kB / 410.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.1507, allocations: 118.4 kB / 410.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1507, allocations: 4 kB / 410.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004664/0.1553, allocations: 4.963 MB / 415.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.1554, allocations: 7.875 kB / 415.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.156, allocations: 397.9 kB / 415.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.1562, allocations: 132.8 kB / 416.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.1562, allocations: 8 kB / 416.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.1565, allocations: 15.98 kB / 416.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1566, allocations: 31.91 kB / 416.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1566, allocations: 4 kB / 416.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.1568, allocations: 223.3 kB / 416.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1568, allocations: 0 / 416.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007267/0.1576, allocations: 115.8 kB / 416.5 MB, free: 14.96 MB / 350.1 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.001046/0.1586, allocations: 0.9418 MB / 417.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1597, allocations: 0.5583 MB / 418 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1597, allocations: 0 / 418 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006017/0.1603, allocations: 475.8 kB / 418.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.1607, allocations: 69 kB / 418.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/0.1656, allocations: 3.135 MB / 421.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.1661, allocations: 0.803 MB / 422.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.1663, allocations: 26.97 kB / 422.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.1664, allocations: 103.4 kB / 422.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.1664, allocations: 0 / 422.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04497/0.2114, allocations: 8.719 MB / 431.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/12.89, allocations: 15.95 kB / 431.3 MB, free: 15.8 MB / 366.1 MB " [Timeout remaining time 647] (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] [Calling os._exit(0), Time elapsed: 15.660513388982508] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 13.043099089001771 13.057313238 12.923396459 Calling exit ...