Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001235/0.001235, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001356/0.001356, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 60.05 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1029, allocations: 53.32 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004836/0.1077, allocations: 3.529 MB / 430.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1093, allocations: 0.8529 MB / 431.4 MB, free: 364 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.1095, allocations: 11.94 kB / 431.4 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.1097, allocations: 71.3 kB / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.1099, allocations: 130.8 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.1103, allocations: 135.8 kB / 431.8 MB, free: 12 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1993/0.3097, allocations: 0.5095 MB / 432.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.3099, allocations: 96.86 kB / 432.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.3103, allocations: 198.7 kB / 432.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.3105, allocations: 212.3 kB / 432.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.931e-05/0.3106, allocations: 39.41 kB / 432.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.3107, allocations: 41.5 kB / 432.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.3108, allocations: 90.08 kB / 432.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.3109, allocations: 227.7 kB / 433.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.3114, allocations: 0.4949 MB / 433.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3114, allocations: 1.094 kB / 433.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3114, allocations: 0.9375 kB / 433.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.3114, allocations: 0 / 433.6 MB, free: 7.414 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.0009464/0.3123, allocations: 0.7359 MB / 434.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3124, allocations: 9.812 kB / 434.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.047e-05/0.3124, allocations: 7.5 kB / 434.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.86e-05/0.3124, allocations: 74.78 kB / 434.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003075/0.3127, allocations: 77.61 kB / 434.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.3131, allocations: 324.5 kB / 434.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3131, allocations: 25.38 kB / 434.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/0.3132, allocations: 32.34 kB / 434.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.3137, allocations: 360.2 kB / 435.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3137, allocations: 2.812 kB / 435.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.3137, allocations: 12.41 kB / 435.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.3137, allocations: 7.625 kB / 435.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005073/0.3142, allocations: 273.2 kB / 435.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3159, allocations: 1.414 MB / 437 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.3162, allocations: 201.5 kB / 437.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.3164, allocations: 99 kB / 437.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.3165, allocations: 3.297 kB / 437.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.3165, allocations: 41.17 kB / 437.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.3165, allocations: 0 / 437.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001406/0.3179, allocations: 0.7009 MB / 438 MB, free: 5.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.067e-05/0.3179, allocations: 53.62 kB / 438.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.3182, allocations: 309.7 kB / 438.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.3182, allocations: 30.73 kB / 438.4 MB, free: 5.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.348e-05/0.3183, allocations: 211.6 kB / 438.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.3183, allocations: 84.31 kB / 438.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.3184, allocations: 53.28 kB / 438.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.845e-05/0.3185, allocations: 338.9 kB / 439.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3187, allocations: 85.06 kB / 439.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.3189, allocations: 125.2 kB / 439.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.3192, allocations: 208.1 kB / 439.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3192, allocations: 0 / 439.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006691/0.3199, allocations: 349.5 kB / 439.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3199, allocations: 15.7 kB / 439.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3199, allocations: 1.375 kB / 439.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003951/0.3203, allocations: 114.6 kB / 439.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.3205, allocations: 38.84 kB / 440 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003013/0.3235, allocations: 4.964 MB / 444.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.3237, allocations: 30.09 kB / 445 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.3238, allocations: 15.56 kB / 445 MB, free: 15.3 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.0001902/0.324, allocations: 147.3 kB / 445.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.324, allocations: 33.66 kB / 445.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.3241, allocations: 40.27 kB / 445.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.3241, allocations: 2.562 kB / 445.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3241, allocations: 0 / 445.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3241, allocations: 2.594 kB / 445.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005018/0.3246, allocations: 383.7 kB / 445.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3246, allocations: 0 / 445.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.3247, allocations: 23.97 kB / 445.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.3251, allocations: 113.1 kB / 445.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.3251, allocations: 6.938 kB / 445.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004206/0.3293, allocations: 4.966 MB / 450.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3293, allocations: 5.047 kB / 450.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.33, allocations: 404.7 kB / 451.1 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.3302, allocations: 133.8 kB / 451.2 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.3302, allocations: 5.703 kB / 451.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.3305, allocations: 24.78 kB / 451.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.3306, allocations: 31.56 kB / 451.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3306, allocations: 6.188 kB / 451.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002663/0.3308, allocations: 220.3 kB / 451.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3308, allocations: 0 / 451.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007207/0.3316, allocations: 114.7 kB / 451.6 MB, free: 9.41 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.0009961/0.3326, allocations: 0.9348 MB / 452.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009845/0.3335, allocations: 0.5666 MB / 453.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3335, allocations: 0 / 453.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005707/0.3341, allocations: 481.4 kB / 453.6 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.3345, allocations: 61.33 kB / 453.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.3391, allocations: 3.151 MB / 456.8 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.3395, allocations: 0.7954 MB / 457.6 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.3396, allocations: 26.33 kB / 457.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.3398, allocations: 110.9 kB / 457.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3398, allocations: 0 / 457.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.3786, allocations: 8.82 MB / 466.6 MB, free: 2.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.14, allocations: 7.922 kB / 466.6 MB, free: 2.438 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.532153606007341] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.306702155969106 12.321481987 12.007133803 Calling exit ...