Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001795/0.001794, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.379/2.379, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 98.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004006, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1057, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005822/0.1116, allocations: 3.378 MB / 378 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.1142, allocations: 0.9637 MB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005189/0.1148, allocations: 8 kB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.1151, allocations: 67.42 kB / 379.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008402/0.1159, allocations: 223.3 kB / 379.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.1164, allocations: 115.8 kB / 379.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.1175, allocations: 499.9 kB / 379.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004276/0.1179, allocations: 170.5 kB / 380 MB, free: 9.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005173/0.1185, allocations: 239.1 kB / 380.3 MB, free: 9.656 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005085/0.119, allocations: 286.7 kB / 380.5 MB, free: 9.375 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.1191, allocations: 36 kB / 380.6 MB, free: 9.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1193, allocations: 36 kB / 380.6 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.1195, allocations: 107.6 kB / 380.7 MB, free: 9.199 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1197, allocations: 133.4 kB / 380.9 MB, free: 9.062 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007718/0.1204, allocations: 0.5063 MB / 381.4 MB, free: 8.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1205, allocations: 0 / 381.4 MB, free: 8.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1205, allocations: 0 / 381.4 MB, free: 8.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1205, allocations: 0 / 381.4 MB, free: 8.555 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002229/0.1227, allocations: 0.8222 MB / 382.2 MB, free: 7.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.1228, allocations: 8.031 kB / 382.2 MB, free: 7.676 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002447/0.1231, allocations: 111.7 kB / 382.3 MB, free: 7.559 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.1233, allocations: 71.16 kB / 382.4 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.124, allocations: 368.9 kB / 382.7 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.503e-05/0.1241, allocations: 45.27 kB / 382.8 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1242, allocations: 52 kB / 382.8 MB, free: 6.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.1258, allocations: 0.5732 MB / 383.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.1258, allocations: 4 kB / 383.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-05/0.1259, allocations: 24 kB / 383.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.126, allocations: 12 kB / 383.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.1276, allocations: 476.9 kB / 383.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004847/0.1325, allocations: 2.114 MB / 386 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.1341, allocations: 0.6385 MB / 386.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.286e-05/0.1342, allocations: 4.562 kB / 386.7 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.1343, allocations: 47.05 kB / 386.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of pre-optimization done (n=60): time 3.176e-06/0.1343, allocations: 0 / 386.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.007636/0.1419, allocations: 2.065 MB / 388.8 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.1421, allocations: 63.91 kB / 388.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006048/0.1427, allocations: 353.7 kB / 389.2 MB, free: 336 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.398e-05/0.1428, allocations: 37.7 kB / 389.2 MB, free: 292 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/0.143, allocations: 283.5 kB / 389.5 MB, free: 8 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2474/0.3905, allocations: 197.8 kB / 389.7 MB, free: 20.78 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.3905, allocations: 10.41 kB / 389.7 MB, free: 20.78 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.3906, allocations: 329.8 kB / 390 MB, free: 20.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006786/0.3913, allocations: 173.3 kB / 390.2 MB, free: 20.47 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/0.392, allocations: 212 kB / 390.4 MB, free: 20.45 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006964/0.3927, allocations: 182.9 kB / 390.6 MB, free: 20.45 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3928, allocations: 0 / 390.6 MB, free: 20.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002158/0.3949, allocations: 0.6505 MB / 391.2 MB, free: 20.36 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.395, allocations: 6.812 kB / 391.2 MB, free: 20.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.395, allocations: 0 / 391.2 MB, free: 20.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.3963, allocations: 263.7 kB / 391.5 MB, free: 20.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005486/0.3968, allocations: 63.38 kB / 391.5 MB, free: 20.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008484/0.4053, allocations: 6.829 MB / 398.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000531/0.4059, allocations: 24.03 kB / 398.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.406, allocations: 16.33 kB / 398.4 MB, free: 14.13 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003397/0.4063, allocations: 178.5 kB / 398.6 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.4065, allocations: 48.38 kB / 398.6 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.4066, allocations: 71.28 kB / 398.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4066, allocations: 8.656 kB / 398.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.4067, allocations: 1.094 kB / 398.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4067, allocations: 2.812 kB / 398.7 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.4101, allocations: 1.357 MB / 400.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4102, allocations: 0 / 400.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.4107, allocations: 70.34 kB / 400.1 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.4119, allocations: 256 kB / 400.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.429e-05/0.412, allocations: 16.8 kB / 400.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/0.4203, allocations: 6.839 MB / 407.3 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4203, allocations: 0 / 407.3 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/0.4233, allocations: 1.045 MB / 408.3 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003112/0.4237, allocations: 157.4 kB / 408.5 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.643e-05/0.4238, allocations: 11.03 kB / 408.5 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004662/0.4243, allocations: 23.56 kB / 408.5 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002447/0.4245, allocations: 53.34 kB / 408.5 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/0.4246, allocations: 16.09 kB / 408.6 MB, free: 6.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003951/0.425, allocations: 257.5 kB / 408.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.425, allocations: 0 / 408.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001355/0.4264, allocations: 174.7 kB / 409 MB, free: 5.988 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00334/0.4297, allocations: 1.604 MB / 410.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.4323, allocations: 1.045 MB / 411.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.4323, allocations: 0 / 411.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.4342, allocations: 0.8392 MB / 412.5 MB, free: 3.625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.4349, allocations: 71.09 kB / 412.5 MB, free: 3.598 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008856/0.4438, allocations: 3.609 MB / 416.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.4444, allocations: 0.8922 MB / 417 MB, free: 0.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.4448, allocations: 172.5 kB / 417.2 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4448, allocations: 5.031 kB / 417.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.39/3.834, allocations: 15.82 MB / 433 MB, free: 3.816 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat