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.00136/0.001359, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.463/1.463, allocations: 227.7 MB / 247.1 MB, free: 10.36 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.00222/0.00222, allocations: 74.09 kB / 307.3 MB, free: 432 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1143, allocations: 50.53 MB / 357.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006088/0.1205, allocations: 3.51 MB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.1227, allocations: 0.8453 MB / 362.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004433/0.1232, allocations: 8 kB / 362.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.1235, allocations: 71.3 kB / 362.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004817/0.124, allocations: 126.8 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.1246, allocations: 139.8 kB / 362.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007453/0.1254, allocations: 0.4978 MB / 363.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.1257, allocations: 143.2 kB / 363.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.1262, allocations: 191.3 kB / 363.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004902/0.1267, allocations: 211 kB / 363.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.1268, allocations: 39.94 kB / 363.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.127, allocations: 48 kB / 363.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1272, allocations: 91.69 kB / 363.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000332/0.1275, allocations: 230.8 kB / 364 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007943/0.1283, allocations: 494.2 kB / 364.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1283, allocations: 0 / 364.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1283, allocations: 0 / 364.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.1284, allocations: 0 / 364.5 MB, free: 7.227 MB / 302.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.001644/0.13, allocations: 0.7285 MB / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.1301, allocations: 8.031 kB / 365.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.142e-05/0.1302, allocations: 70.72 kB / 365.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.1306, allocations: 72.34 kB / 365.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/0.131, allocations: 315.3 kB / 365.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.1311, allocations: 29.03 kB / 365.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.965e-05/0.1311, allocations: 32.38 kB / 365.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006748/0.1318, allocations: 358.8 kB / 366.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1319, allocations: 0 / 366.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.1319, allocations: 16 kB / 366.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1319, allocations: 8 kB / 366.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006026/0.1325, allocations: 274.4 kB / 366.4 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.1348, allocations: 1.426 MB / 367.8 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/0.1353, allocations: 218.3 kB / 368 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.1355, allocations: 108.8 kB / 368.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.1355, allocations: 8 kB / 368.1 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.1356, allocations: 38.5 kB / 368.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.815e-06/0.1356, allocations: 0 / 368.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001881/0.1375, allocations: 0.7105 MB / 368.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/0.1376, allocations: 55.41 kB / 368.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004974/0.1381, allocations: 316.4 kB / 369.2 MB, free: 2.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.1382, allocations: 29.7 kB / 369.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1384, allocations: 208.2 kB / 369.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.686e-05/0.1385, allocations: 78.84 kB / 369.5 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.894e-05/0.1386, allocations: 53.61 kB / 369.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1388, allocations: 342.8 kB / 369.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.139, allocations: 75.97 kB / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.1392, allocations: 128.2 kB / 370.1 MB, free: 1.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000424/0.1397, allocations: 200.1 kB / 370.3 MB, free: 1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1397, allocations: 0 / 370.3 MB, free: 1 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007799/0.1405, allocations: 359.7 kB / 370.7 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.1405, allocations: 8 kB / 370.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.1405, allocations: 4 kB / 370.7 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005131/0.141, allocations: 114.5 kB / 370.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.1412, allocations: 39.84 kB / 370.8 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2298/0.371, allocations: 4.961 MB / 375.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.3714, allocations: 28.34 kB / 375.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.3714, allocations: 13.97 kB / 375.8 MB, free: 15.63 MB / 302.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.0001899/0.3716, allocations: 145.9 kB / 376 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.096e-05/0.3717, allocations: 38.09 kB / 376 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.198e-05/0.3717, allocations: 36.2 kB / 376 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3718, allocations: 2.062 kB / 376 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3718, allocations: 4.812 kB / 376.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3718, allocations: 1.922 kB / 376.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.3722, allocations: 382.8 kB / 376.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3722, allocations: 0 / 376.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.3724, allocations: 25.66 kB / 376.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.3727, allocations: 112.9 kB / 376.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3728, allocations: 6.047 kB / 376.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00304/0.3758, allocations: 4.977 MB / 381.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3758, allocations: 0.7031 kB / 381.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006509/0.3765, allocations: 403.2 kB / 381.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.3766, allocations: 130.3 kB / 382.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.3767, allocations: 5.094 kB / 382.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.3769, allocations: 21.95 kB / 382.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.377, allocations: 31.92 kB / 382.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.3771, allocations: 12.69 kB / 382.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.3774, allocations: 220.4 kB / 382.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3774, allocations: 0 / 382.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007624/0.3781, allocations: 117.3 kB / 382.5 MB, free: 10.05 MB / 302.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.0007751/0.3789, allocations: 0.929 MB / 383.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008462/0.3798, allocations: 0.5802 MB / 384 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3798, allocations: 0 / 384 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.3803, allocations: 480.4 kB / 384.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.3807, allocations: 72.16 kB / 384.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.3847, allocations: 3.179 MB / 387.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.385, allocations: 0.802 MB / 388.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.3851, allocations: 29.45 kB / 388.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3853, allocations: 109.5 kB / 388.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3853, allocations: 0 / 388.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04449/0.4298, allocations: 8.549 MB / 397.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.52, allocations: 5.062 kB / 397.2 MB, free: 3.105 MB / 302.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)