Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_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.000942/0.0009421, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.001022/0.001022, allocations: 179.8 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.000277, allocations: 12 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 50.41 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003314/0.1141, allocations: 2.987 MB / 354.3 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1153, allocations: 0.7212 MB / 355 MB, free: 196 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.1155, allocations: 4 kB / 355 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1157, allocations: 55.48 kB / 355.1 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.1159, allocations: 119 kB / 355.2 MB, free: 16 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1162, allocations: 79.98 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.1167, allocations: 469.5 kB / 355.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.1169, allocations: 102.7 kB / 355.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.1171, allocations: 159.4 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.1173, allocations: 183.2 kB / 356.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.1174, allocations: 20 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.161e-05/0.1174, allocations: 24 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-05/0.1175, allocations: 59.75 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.327e-05/0.1176, allocations: 109.4 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.1179, allocations: 347 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1179, allocations: 0 / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1179, allocations: 0 / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.1179, allocations: 0 / 356.7 MB, free: 14.48 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.001026/0.119, allocations: 0.6661 MB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.119, allocations: 12.03 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.384e-05/0.1191, allocations: 70.53 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.1192, allocations: 51.39 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.1196, allocations: 294.2 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.1196, allocations: 24.66 kB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/0.1197, allocations: 28 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006259/0.1203, allocations: 362.7 kB / 358.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1203, allocations: 0 / 358.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.1204, allocations: 16 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1204, allocations: 11.95 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.1209, allocations: 282.4 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.1228, allocations: 1.434 MB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.1232, allocations: 226.4 kB / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1234, allocations: 116.8 kB / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.1235, allocations: 7.922 kB / 360.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1235, allocations: 46.44 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.934e-06/0.1235, allocations: 4 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001522/0.1251, allocations: 0.7063 MB / 361.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.1251, allocations: 55.41 kB / 361.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.1255, allocations: 300.6 kB / 361.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.1255, allocations: 33.7 kB / 361.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1257, allocations: 212.1 kB / 361.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.734e-05/0.1257, allocations: 70.91 kB / 361.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.1257, allocations: 8 kB / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1259, allocations: 338.8 kB / 362.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.1261, allocations: 87.95 kB / 362.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.1263, allocations: 132.2 kB / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.1265, allocations: 83.94 kB / 362.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1265, allocations: 3.984 kB / 362.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007645/0.1273, allocations: 379.4 kB / 362.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1273, allocations: 8.062 kB / 362.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1273, allocations: 4 kB / 362.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004173/0.1278, allocations: 118.4 kB / 362.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.128, allocations: 35.97 kB / 362.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/0.1318, allocations: 4.445 MB / 367.3 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002887/0.1321, allocations: 27.86 kB / 367.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.1321, allocations: 8 kB / 367.4 MB, free: 3.043 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 (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.0002483/0.1324, allocations: 149.8 kB / 367.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.1325, allocations: 43.56 kB / 367.6 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.988e-05/0.1326, allocations: 35.17 kB / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1326, allocations: 0 / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1326, allocations: 192 / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.1326, allocations: 0 / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004544/0.133, allocations: 381.2 kB / 368 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1331, allocations: 0 / 368 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.1332, allocations: 31.98 kB / 368 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/0.1335, allocations: 110.5 kB / 368.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1335, allocations: 4 kB / 368.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2579/0.3914, allocations: 4.436 MB / 372.5 MB, free: 21.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3915, allocations: 0 / 372.5 MB, free: 21.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007867/0.3923, allocations: 419.9 kB / 373 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.3924, allocations: 125.7 kB / 373.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.3925, allocations: 6.094 kB / 373.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3927, allocations: 27.52 kB / 373.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3928, allocations: 26.8 kB / 373.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3928, allocations: 12.39 kB / 373.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.3931, allocations: 215.8 kB / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3931, allocations: 0 / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007265/0.3938, allocations: 120.2 kB / 373.5 MB, free: 21.57 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.0008717/0.3947, allocations: 0.9451 MB / 374.4 MB, free: 20.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009149/0.3957, allocations: 0.5848 MB / 375 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3957, allocations: 2.203 kB / 375 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005476/0.3962, allocations: 482.2 kB / 375.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.3968, allocations: 56.34 kB / 375.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.4006, allocations: 1.92 MB / 377.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.401, allocations: 0.7951 MB / 378.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.4012, allocations: 26.17 kB / 378.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.4013, allocations: 114.3 kB / 378.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4013, allocations: 0 / 378.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.4253, allocations: 7.582 MB / 386 MB, free: 17.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.4255, allocations: 227 kB / 386.2 MB, free: 16.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2/2.426, allocations: 7.094 kB / 386.2 MB, free: 16.82 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat