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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 97.83 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009854/0.0009854, allocations: 177.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004764, allocations: 15.44 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09644, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003504/0.1, allocations: 2.763 MB / 331.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1014, allocations: 0.7924 MB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1015, allocations: 7.938 kB / 332 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.322e-05/0.1016, allocations: 47.66 kB / 332 MB, free: 380 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.1019, allocations: 163.5 kB / 332.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.1022, allocations: 79.89 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1026, allocations: 343.3 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.1029, allocations: 110.5 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.1031, allocations: 159.4 kB / 332.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1033, allocations: 187.2 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.1034, allocations: 20 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.1034, allocations: 20 kB / 333.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.1035, allocations: 67.69 kB / 333.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.136e-05/0.1036, allocations: 97.52 kB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.1039, allocations: 343 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1039, allocations: 0 / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1039, allocations: 0 / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1039, allocations: 0 / 333.6 MB, free: 14.8 MB / 286.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.001123/0.1051, allocations: 0.6661 MB / 334.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1051, allocations: 16.03 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.852e-05/0.1052, allocations: 66.53 kB / 334.3 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.774e-05/0.1053, allocations: 47.44 kB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.1057, allocations: 298.2 kB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.1057, allocations: 32.61 kB / 334.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.1058, allocations: 28 kB / 334.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.1063, allocations: 358.7 kB / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1064, allocations: 0 / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.1064, allocations: 15.94 kB / 335.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1064, allocations: 8 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.107, allocations: 282.4 kB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1089, allocations: 1.43 MB / 336.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.1094, allocations: 230.5 kB / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.1095, allocations: 0 / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.1095, allocations: 38.5 kB / 337.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1095, allocations: 0 / 337.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001533/0.111, allocations: 0.7108 MB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1111, allocations: 63.16 kB / 337.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.1114, allocations: 308.6 kB / 338.1 MB, free: 9.914 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.795e-05/0.1115, allocations: 25.7 kB / 338.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1117, allocations: 212.1 kB / 338.4 MB, free: 9.668 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.1118, allocations: 78.89 kB / 338.5 MB, free: 9.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.1118, allocations: 8 kB / 338.5 MB, free: 9.582 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1119, allocations: 334.8 kB / 338.8 MB, free: 9.246 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.1121, allocations: 87.95 kB / 338.9 MB, free: 9.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.1123, allocations: 128.2 kB / 339 MB, free: 9.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.1125, allocations: 87.98 kB / 339.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1126, allocations: 0 / 339.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007277/0.1133, allocations: 375.5 kB / 339.5 MB, free: 8.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1133, allocations: 4 kB / 339.5 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1133, allocations: 4 kB / 339.5 MB, free: 8.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004415/0.1138, allocations: 122.4 kB / 339.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.114, allocations: 35.97 kB / 339.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.1175, allocations: 4.472 MB / 344.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.1177, allocations: 31.98 kB / 344.1 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.1178, allocations: 15.95 kB / 344.1 MB, free: 3.457 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.118, allocations: 145.8 kB / 344.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.118, allocations: 31.62 kB / 344.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.967e-05/0.1181, allocations: 39.17 kB / 344.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1181, allocations: 0 / 344.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.1181, allocations: 0 / 344.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1181, allocations: 7.984 kB / 344.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003969/0.1185, allocations: 377.2 kB / 344.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1185, allocations: 0 / 344.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.1187, allocations: 23.98 kB / 344.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002955/0.119, allocations: 114.9 kB / 344.9 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.119, allocations: 11.98 kB / 344.9 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.1224, allocations: 4.473 MB / 349.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1224, allocations: 0 / 349.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006152/0.1231, allocations: 421.6 kB / 349.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.1232, allocations: 124.6 kB / 349.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.1232, allocations: 8 kB / 349.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.1235, allocations: 23.98 kB / 349.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.1236, allocations: 31.89 kB / 349.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.1236, allocations: 8 kB / 349.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000208/0.1238, allocations: 219 kB / 350.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1238, allocations: 4.281 kB / 350.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006554/0.1245, allocations: 115.7 kB / 350.3 MB, free: 12.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009093/0.1254, allocations: 0.9487 MB / 351.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008922/0.1263, allocations: 0.574 MB / 351.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1263, allocations: 0 / 351.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005242/0.1269, allocations: 487.9 kB / 352.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.1273, allocations: 53.06 kB / 352.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.1305, allocations: 2.518 MB / 354.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.131, allocations: 0.8067 MB / 355.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.1311, allocations: 30.95 kB / 355.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1312, allocations: 107.3 kB / 355.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of SimCode: time 9.51e-07/0.1312, allocations: 0 / 355.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.1519, allocations: 7.563 MB / 363.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.1522, allocations: 232.7 kB / 363.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.026, allocations: 0 / 363.6 MB, free: 15.26 MB / 318.1 MB (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/linux/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 --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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat