Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 111.8 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 194.5 kB / 21.43 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 249.8 MB, free: 3.715 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 43.94 kB / 366.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09488, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004621/0.0995, allocations: 3.501 MB / 422 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1007, allocations: 0.7517 MB / 422.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.1008, allocations: 7.938 kB / 422.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.101, allocations: 75.28 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.1012, allocations: 138.8 kB / 423 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1015, allocations: 103.8 kB / 423.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005305/0.102, allocations: 0.4977 MB / 423.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.1022, allocations: 99.28 kB / 423.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.1025, allocations: 195.3 kB / 423.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.1027, allocations: 211 kB / 424.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.913e-05/0.1028, allocations: 40 kB / 424.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.866e-05/0.1029, allocations: 40 kB / 424.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.789e-05/0.1029, allocations: 87.69 kB / 424.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.1031, allocations: 226.9 kB / 424.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005035/0.1036, allocations: 497.9 kB / 424.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1037, allocations: 0 / 424.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1037, allocations: 0 / 424.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1037, allocations: 0 / 424.9 MB, free: 6.117 MB / 350.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.001143/0.1048, allocations: 0.7282 MB / 425.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1048, allocations: 12.03 kB / 425.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.284e-05/0.1049, allocations: 8.844 kB / 425.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.001e-05/0.1049, allocations: 70.72 kB / 425.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.105, allocations: 52.61 kB / 425.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.1055, allocations: 323.4 kB / 426.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.1055, allocations: 21.03 kB / 426.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.1055, allocations: 32.38 kB / 426.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.1062, allocations: 358.6 kB / 426.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1062, allocations: 4 kB / 426.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.1062, allocations: 16 kB / 426.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.1062, allocations: 12 kB / 426.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005486/0.1068, allocations: 270.4 kB / 426.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.1088, allocations: 1.403 MB / 428.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004229/0.1092, allocations: 202.4 kB / 428.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.1094, allocations: 100.8 kB / 428.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1094, allocations: 4 kB / 428.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.1095, allocations: 38.5 kB / 428.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.1095, allocations: 0 / 428.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001575/0.111, allocations: 0.6955 MB / 429.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1111, allocations: 55.41 kB / 429.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.1114, allocations: 304.5 kB / 429.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.1114, allocations: 29.7 kB / 429.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1116, allocations: 212.5 kB / 429.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.1117, allocations: 83.33 kB / 429.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.979e-05/0.1118, allocations: 53.7 kB / 430 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1119, allocations: 338.8 kB / 430.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.1121, allocations: 79.97 kB / 430.4 MB, free: 316 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.1123, allocations: 124.2 kB / 430.5 MB, free: 176 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.1128, allocations: 208.1 kB / 430.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1128, allocations: 0 / 430.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007209/0.1135, allocations: 351.7 kB / 431 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1135, allocations: 6.5 kB / 431.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1135, allocations: 0 / 431.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.1139, allocations: 126.4 kB / 431.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.1141, allocations: 31.92 kB / 431.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004315/0.1184, allocations: 4.986 MB / 436.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.1186, allocations: 20.2 kB / 436.2 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.1187, allocations: 11.98 kB / 436.2 MB, free: 9.992 MB / 366.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.0001713/0.1188, allocations: 149.8 kB / 436.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.1189, allocations: 39.7 kB / 436.4 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.119, allocations: 35.17 kB / 436.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.119, allocations: 8.062 kB / 436.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.119, allocations: 0 / 436.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.119, allocations: 0 / 436.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.1194, allocations: 381.2 kB / 436.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1194, allocations: 0 / 436.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1195, allocations: 23.92 kB / 436.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003289/0.1199, allocations: 110.5 kB / 437 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1199, allocations: 4 kB / 437 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.1241, allocations: 4.975 MB / 441.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1241, allocations: 3.938 kB / 441.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006589/0.1247, allocations: 397 kB / 442.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.1249, allocations: 128.8 kB / 442.5 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.1249, allocations: 12 kB / 442.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.1251, allocations: 19.98 kB / 442.5 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.1252, allocations: 31.89 kB / 442.5 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1252, allocations: 8 kB / 442.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.1254, allocations: 215.1 kB / 442.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1254, allocations: 4 kB / 442.7 MB, free: 2.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006525/0.1261, allocations: 107.8 kB / 442.8 MB, free: 2.848 MB / 366.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.0009888/0.1271, allocations: 0.941 MB / 443.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009299/0.128, allocations: 0.5544 MB / 444.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.128, allocations: 0 / 444.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005662/0.1286, allocations: 487 kB / 444.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.129, allocations: 69.62 kB / 444.9 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1802/0.3092, allocations: 3.107 MB / 448 MB, free: 28.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.3094, allocations: 0.7919 MB / 448.8 MB, free: 27.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3095, allocations: 25.25 kB / 448.8 MB, free: 27.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3097, allocations: 114.1 kB / 448.9 MB, free: 27.81 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3097, allocations: 0 / 448.9 MB, free: 27.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03544/0.3451, allocations: 8.712 MB / 457.6 MB, free: 27.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.05, allocations: 15.98 kB / 457.6 MB, free: 27.07 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.42498610803159] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.193972085020505 12.205235631 12.09928499 Calling exit ...