Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_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.001546/0.001546, allocations: 185.9 kB / 16.4 MB, free: 5.746 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.038/2.038, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001143/0.001143, allocations: 94 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004222, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.343, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.4887, allocations: 87.05 MB / 461.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003463/0.4891, allocations: 83.95 kB / 461.8 MB, free: 9.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09514/0.5843, allocations: 22.5 MB / 484.3 MB, free: 2.797 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5844, allocations: 4 kB / 484.3 MB, free: 2.793 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.132e-05/0.5844, allocations: 23.98 kB / 484.3 MB, free: 2.77 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004139/0.5886, allocations: 1.216 MB / 485.5 MB, free: 1.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.5887, allocations: 16.03 kB / 485.5 MB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005136/0.5892, allocations: 162.5 kB / 485.7 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00347/0.5927, allocations: 378.2 kB / 486.1 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.5942, allocations: 0.5411 MB / 486.6 MB, free: 364 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.5944, allocations: 82.03 kB / 486.7 MB, free: 280 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/0.5946, allocations: 104 kB / 486.8 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003261/0.5979, allocations: 1.059 MB / 487.8 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.488e-05/0.598, allocations: 3.938 kB / 487.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/0.5982, allocations: 44 kB / 487.9 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.5982, allocations: 24 kB / 487.9 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003204/0.6015, allocations: 0.9408 MB / 488.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009961/0.6115, allocations: 3.802 MB / 492.6 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004369/0.6159, allocations: 2.492 MB / 495.1 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000218/0.6162, allocations: 101.7 kB / 495.2 MB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001546/0.6177, allocations: 0.4969 MB / 495.7 MB, free: 6.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 4.258e-06/0.6178, allocations: 0 / 495.7 MB, free: 6.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.008102/0.6259, allocations: 1.696 MB / 497.4 MB, free: 4.824 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.6261, allocations: 192.9 kB / 497.6 MB, free: 4.594 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008551/0.6269, allocations: 413.1 kB / 498 MB, free: 4.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.6271, allocations: 45.7 kB / 498.1 MB, free: 4.129 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004414/0.6275, allocations: 477.8 kB / 498.5 MB, free: 3.656 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003639/0.6279, allocations: 287.8 kB / 498.8 MB, free: 3.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/0.628, allocations: 20 kB / 498.8 MB, free: 3.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.6282, allocations: 342.8 kB / 499.2 MB, free: 3.008 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.6293, allocations: 285.9 kB / 499.5 MB, free: 2.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.6305, allocations: 0.5239 MB / 500 MB, free: 2.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.6317, allocations: 351 kB / 0.4886 GB, free: 1.758 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.6317, allocations: 0 / 0.4886 GB, free: 1.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003881/0.6356, allocations: 1.073 MB / 0.4896 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.6357, allocations: 8.938 kB / 0.4896 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.6358, allocations: 4 kB / 0.4897 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.6373, allocations: 276.3 kB / 0.4899 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.6386, allocations: 163.7 kB / 0.4901 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2813/0.9199, allocations: 4.466 MB / 0.4944 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.9212, allocations: 109.2 kB / 0.4945 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-05/0.9213, allocations: 44.38 kB / 0.4946 GB, free: 96.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006134/0.9219, allocations: 254.5 kB / 0.4948 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.9221, allocations: 77.56 kB / 0.4949 GB, free: 96.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003509/0.9257, allocations: 0.9972 MB / 0.4959 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.9257, allocations: 8.656 kB / 0.4959 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.9257, allocations: 4.953 kB / 0.4959 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.9258, allocations: 4.469 kB / 0.4959 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.931, allocations: 1.986 MB / 0.4978 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.9311, allocations: 1.125 kB / 0.4978 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009175/0.932, allocations: 105.8 kB / 0.4979 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.9334, allocations: 263.3 kB / 0.4982 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.9335, allocations: 22.3 kB / 0.4982 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007244/0.9408, allocations: 4.439 MB / 0.5025 GB, free: 92.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.9408, allocations: 3.781 kB / 0.5025 GB, free: 92.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/0.9454, allocations: 1.431 MB / 0.5039 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005123/0.946, allocations: 211.4 kB / 0.5041 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.9462, allocations: 17.66 kB / 0.5042 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008245/0.947, allocations: 49.92 kB / 0.5042 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.9473, allocations: 74.09 kB / 0.5043 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.611e-05/0.9474, allocations: 24.69 kB / 0.5043 GB, free: 92.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000532/0.9479, allocations: 321.8 kB / 0.5046 GB, free: 92.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9479, allocations: 0 / 0.5046 GB, free: 92.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001602/0.9496, allocations: 324.3 kB / 0.5049 GB, free: 92.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.00459/0.9542, allocations: 2.109 MB / 0.507 GB, free: 91.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002967/0.9572, allocations: 1.122 MB / 0.5081 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.9572, allocations: 3.781 kB / 0.5081 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002146/0.9594, allocations: 0.7562 MB / 0.5088 GB, free: 90.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009099/0.9604, allocations: 105.8 kB / 0.5089 GB, free: 90.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009191/0.9696, allocations: 7.559 MB / 0.5163 GB, free: 83.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.9702, allocations: 1.019 MB / 0.5173 GB, free: 83.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006812/0.9709, allocations: 328.6 kB / 0.5176 GB, free: 82.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/0.9709, allocations: 0 / 0.5176 GB, free: 82.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.937/3.908, allocations: 20.29 MB / 0.5374 GB, free: 73.25 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat