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.001266/0.001266, allocations: 109.1 kB / 21.96 MB, free: 5.227 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.001308/0.001308, allocations: 206 kB / 25.25 MB, free: 3.129 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.381/1.381, allocations: 207.7 MB / 236.1 MB, free: 9.785 MB / 190.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.001667/0.001667, allocations: 58.52 kB / 348 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2528, allocations: 49.16 MB / 397.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003817/0.2566, allocations: 3.128 MB / 400.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.2578, allocations: 0.7671 MB / 401 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.258, allocations: 8.656 kB / 401 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.2581, allocations: 71.09 kB / 401.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.2584, allocations: 132.1 kB / 401.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000303/0.2587, allocations: 112.2 kB / 401.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.2591, allocations: 0.5019 MB / 401.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.2593, allocations: 104.5 kB / 402 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.2595, allocations: 196.3 kB / 402.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.2597, allocations: 212.2 kB / 402.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.014e-05/0.2598, allocations: 40.19 kB / 402.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.162e-05/0.2599, allocations: 38.59 kB / 402.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.491e-05/0.2599, allocations: 94.03 kB / 402.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.2601, allocations: 178.8 kB / 402.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004991/0.2606, allocations: 0.4947 MB / 403.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2606, allocations: 0.7969 kB / 403.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2606, allocations: 1.375 kB / 403.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.2606, allocations: 0 / 403.2 MB, free: 5.137 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.0009771/0.2616, allocations: 0.6517 MB / 403.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2616, allocations: 9.156 kB / 403.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.337e-05/0.2617, allocations: 8.938 kB / 403.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.702e-05/0.2617, allocations: 78.2 kB / 403.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.662e-05/0.2618, allocations: 51.91 kB / 404 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.2622, allocations: 257.7 kB / 404.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.2622, allocations: 26.12 kB / 404.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.2622, allocations: 28.84 kB / 404.3 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.2629, allocations: 439.4 kB / 404.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2629, allocations: 0 / 404.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.2629, allocations: 12.67 kB / 404.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2629, allocations: 15.88 kB / 404.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004975/0.2634, allocations: 269.2 kB / 405 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.2651, allocations: 1.285 MB / 406.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.2654, allocations: 202.1 kB / 406.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.2656, allocations: 96.75 kB / 406.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.2656, allocations: 3.344 kB / 406.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.2657, allocations: 41.3 kB / 406.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.2657, allocations: 0 / 406.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001328/0.267, allocations: 473.4 kB / 407.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.267, allocations: 55 kB / 407.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.2673, allocations: 308.6 kB / 407.5 MB, free: 2.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2673, allocations: 31.08 kB / 407.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.2674, allocations: 212 kB / 407.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.2675, allocations: 79.3 kB / 407.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-05/0.2676, allocations: 52.05 kB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.2676, allocations: 339.1 kB / 408.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.2678, allocations: 89.34 kB / 408.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.268, allocations: 116.5 kB / 408.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.2683, allocations: 203.8 kB / 408.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2683, allocations: 0 / 408.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006268/0.2689, allocations: 351.8 kB / 408.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2689, allocations: 6.812 kB / 408.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2689, allocations: 3.984 kB / 408.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004022/0.2693, allocations: 119.9 kB / 409 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2695, allocations: 31.36 kB / 409.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.2733, allocations: 4.647 MB / 413.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.2736, allocations: 31.86 kB / 413.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.2736, allocations: 11.41 kB / 413.7 MB, free: 12.8 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.0002064/0.2738, allocations: 150.2 kB / 413.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.2739, allocations: 32.52 kB / 413.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.601e-05/0.2739, allocations: 38.92 kB / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2739, allocations: 3.688 kB / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.2739, allocations: 0 / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2739, allocations: 0.8438 kB / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004491/0.2744, allocations: 310.2 kB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2744, allocations: 5.156 kB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.2745, allocations: 20.84 kB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000341/0.2748, allocations: 120.9 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.2749, allocations: 2.266 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/0.2788, allocations: 4.647 MB / 419.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.2788, allocations: 4.641 kB / 419.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006982/0.2795, allocations: 399 kB / 419.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.2797, allocations: 43.19 kB / 419.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.2797, allocations: 10.08 kB / 419.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.28, allocations: 21.2 kB / 419.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.2801, allocations: 28.66 kB / 419.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.2801, allocations: 9.266 kB / 419.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.2803, allocations: 218.1 kB / 419.8 MB, free: 7.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2803, allocations: 0 / 419.8 MB, free: 7.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006975/0.281, allocations: 115.5 kB / 419.9 MB, free: 7.418 MB / 334.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.000966/0.282, allocations: 0.9339 MB / 420.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009448/0.2829, allocations: 0.5677 MB / 421.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2829, allocations: 0.9062 kB / 421.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000542/0.2835, allocations: 478.2 kB / 421.9 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.2839, allocations: 69.16 kB / 421.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/0.2883, allocations: 3.117 MB / 425 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.2886, allocations: 192.1 kB / 425.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001193/0.2887, allocations: 26.38 kB / 425.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.2888, allocations: 110.3 kB / 425.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2888, allocations: 0 / 425.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/0.3306, allocations: 8.886 MB / 434.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.79, allocations: 8.047 kB / 434.3 MB, free: 12.58 MB / 350.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.130390160018578] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.965157803031616 12.988428588 12.723031608 Calling exit ...