Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2467, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00465/0.2514, allocations: 3.508 MB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.2531, allocations: 0.849 MB / 413.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.2533, allocations: 11.94 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.2535, allocations: 67.28 kB / 413.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.2538, allocations: 134.8 kB / 413.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.2541, allocations: 123.8 kB / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.2547, allocations: 0.5133 MB / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.2549, allocations: 139.2 kB / 414.4 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.2552, allocations: 191.3 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.2554, allocations: 211 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.2555, allocations: 40 kB / 414.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.2556, allocations: 48 kB / 414.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.2557, allocations: 95.59 kB / 415 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002087/0.2559, allocations: 218.9 kB / 415.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.2565, allocations: 0.4968 MB / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2565, allocations: 0 / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2565, allocations: 0 / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2565, allocations: 0 / 415.7 MB, free: 10.71 MB / 334.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.001221/0.2577, allocations: 0.7359 MB / 416.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.2578, allocations: 12.02 kB / 416.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.821e-05/0.2579, allocations: 66.73 kB / 416.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/0.2582, allocations: 84.56 kB / 416.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.2588, allocations: 331.5 kB / 416.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2589, allocations: 21.03 kB / 416.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.024e-05/0.259, allocations: 32.38 kB / 417 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/0.2596, allocations: 358.9 kB / 417.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2597, allocations: 3.938 kB / 417.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.2597, allocations: 16 kB / 417.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.2597, allocations: 8 kB / 417.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005841/0.2603, allocations: 274.4 kB / 417.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.2624, allocations: 1.411 MB / 419 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.2628, allocations: 226.4 kB / 419.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.263, allocations: 105.2 kB / 419.4 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.2631, allocations: 4 kB / 419.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.2631, allocations: 42.36 kB / 419.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.2631, allocations: 0 / 419.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001561/0.2647, allocations: 0.7067 MB / 420.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.2647, allocations: 51.41 kB / 420.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.2651, allocations: 308.6 kB / 420.5 MB, free: 5.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.2651, allocations: 33.7 kB / 420.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.2653, allocations: 220.4 kB / 420.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.747e-05/0.2654, allocations: 79.36 kB / 420.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/0.2655, allocations: 49.66 kB / 420.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.2657, allocations: 342.8 kB / 421.2 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.2659, allocations: 79.97 kB / 421.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.2662, allocations: 124.2 kB / 421.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.2666, allocations: 204.1 kB / 421.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2666, allocations: 4 kB / 421.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007252/0.2673, allocations: 355.7 kB / 421.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2674, allocations: 8 kB / 421.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2674, allocations: 0 / 421.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/0.2678, allocations: 118.6 kB / 422 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.268, allocations: 35.84 kB / 422.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004367/0.2724, allocations: 4.976 MB / 427 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.2726, allocations: 23.84 kB / 427.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.2726, allocations: 8 kB / 427.1 MB, free: 14.5 MB / 350.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.0001867/0.2728, allocations: 151.5 kB / 427.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.2729, allocations: 39.83 kB / 427.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.509e-05/0.2729, allocations: 39.17 kB / 427.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.273, allocations: 8 kB / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.273, allocations: 0 / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.273, allocations: 0 / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000445/0.2734, allocations: 381.2 kB / 427.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2735, allocations: 0 / 427.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2736, allocations: 27.92 kB / 427.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000321/0.2739, allocations: 110.5 kB / 427.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.2739, allocations: 4 kB / 427.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004153/0.2781, allocations: 4.975 MB / 432.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2781, allocations: 0 / 432.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000634/0.2788, allocations: 409.4 kB / 433.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2789, allocations: 133.1 kB / 433.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2789, allocations: 0 / 433.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.2792, allocations: 19.98 kB / 433.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/0.2793, allocations: 43.77 kB / 433.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.2793, allocations: 4 kB / 433.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.2795, allocations: 223.1 kB / 433.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2795, allocations: 0 / 433.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000647/0.2802, allocations: 119.8 kB / 433.7 MB, free: 7.324 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.0009279/0.2811, allocations: 0.9372 MB / 434.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008884/0.282, allocations: 0.5622 MB / 435.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.282, allocations: 8.062 kB / 435.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.2826, allocations: 490.6 kB / 435.7 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.283, allocations: 65.42 kB / 435.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.2873, allocations: 3.159 MB / 438.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.2877, allocations: 0.7914 MB / 439.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.2879, allocations: 26.97 kB / 439.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.288, allocations: 107.4 kB / 439.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.288, allocations: 0 / 439.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1696/0.4576, allocations: 8.734 MB / 448.6 MB, free: 8.445 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.45, allocations: 11.61 kB / 448.6 MB, free: 8.438 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)