Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008673/0.0008674, allocations: 101.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008957/0.0008958, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002538, allocations: 8 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1314, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004423/0.1358, allocations: 3.687 MB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.1377, allocations: 0.9311 MB / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002855/0.138, allocations: 8 kB / 362.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.1383, allocations: 75.38 kB / 363 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000488/0.1388, allocations: 170.7 kB / 363.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.1391, allocations: 119.9 kB / 363.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006731/0.1398, allocations: 0.6776 MB / 364 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.1401, allocations: 182.5 kB / 364.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003445/0.1405, allocations: 235.1 kB / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000359/0.1408, allocations: 286.8 kB / 364.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.557e-05/0.1409, allocations: 36 kB / 364.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.141, allocations: 36 kB / 364.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.1412, allocations: 119.4 kB / 364.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1413, allocations: 133.4 kB / 365 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005531/0.1419, allocations: 0.5024 MB / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.1419, allocations: 0 / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1419, allocations: 4 kB / 365.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.1419, allocations: 0 / 365.5 MB, free: 6.535 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001422/0.1434, allocations: 0.8333 MB / 366.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.1434, allocations: 12.03 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000169/0.1436, allocations: 103.7 kB / 366.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003861/0.144, allocations: 107.1 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.1445, allocations: 368.9 kB / 366.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.1446, allocations: 41.31 kB / 366.9 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.463e-05/0.1447, allocations: 55.95 kB / 367 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009798/0.1456, allocations: 0.5771 MB / 367.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1457, allocations: 0 / 367.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.857e-05/0.1457, allocations: 23.94 kB / 367.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.1458, allocations: 12 kB / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009029/0.1467, allocations: 477 kB / 368.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.1497, allocations: 2.114 MB / 370.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.1508, allocations: 0.6535 MB / 370.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006185/0.1514, allocations: 402.2 kB / 371.2 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.1515, allocations: 8.547 kB / 371.2 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.1515, allocations: 47.11 kB / 371.3 MB, free: 492 kB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.164e-06/0.1515, allocations: 0 / 371.3 MB, free: 492 kB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.2828/0.4343, allocations: 2.057 MB / 373.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.4344, allocations: 59.2 kB / 373.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005082/0.4349, allocations: 363 kB / 373.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.435, allocations: 34.86 kB / 373.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.4351, allocations: 243.1 kB / 374 MB, free: 18.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.4353, allocations: 202 kB / 374.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.4353, allocations: 13.25 kB / 374.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4355, allocations: 355 kB / 374.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003717/0.4358, allocations: 172.8 kB / 374.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.4363, allocations: 220.9 kB / 375 MB, free: 17.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.4367, allocations: 181.7 kB / 375.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4367, allocations: 3.5 kB / 375.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001803/0.4385, allocations: 0.6688 MB / 375.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.4385, allocations: 9 kB / 375.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4385, allocations: 1.125 kB / 375.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009855/0.4395, allocations: 256.5 kB / 376.1 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.4399, allocations: 62.33 kB / 376.1 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006118/0.446, allocations: 6.776 MB / 382.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.4465, allocations: 22.59 kB / 382.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.4465, allocations: 16.5 kB / 382.9 MB, free: 11.55 MB / 302.1 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.0002907/0.4468, allocations: 176.5 kB / 383.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.933e-05/0.4469, allocations: 57.7 kB / 383.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.447, allocations: 61.69 kB / 383.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4471, allocations: 10.92 kB / 383.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.4471, allocations: 2.594 kB / 383.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.4471, allocations: 3.047 kB / 383.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.4495, allocations: 1.358 MB / 384.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4495, allocations: 0.7969 kB / 384.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.4498, allocations: 62.61 kB / 384.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006625/0.4505, allocations: 250 kB / 384.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.4506, allocations: 16.77 kB / 384.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005659/0.4562, allocations: 6.784 MB / 391.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.4563, allocations: 1.984 kB / 391.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.4584, allocations: 1.044 MB / 392.8 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.4586, allocations: 157.8 kB / 392.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.87e-05/0.4587, allocations: 15.2 kB / 392.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.4589, allocations: 24.47 kB / 393 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.4592, allocations: 51.31 kB / 393 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.4592, allocations: 15.34 kB / 393 MB, free: 3.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003422/0.4595, allocations: 252.6 kB / 393.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4595, allocations: 0 / 393.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001038/0.4606, allocations: 178 kB / 393.4 MB, free: 3.426 MB / 302.1 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.002022/0.4626, allocations: 1.611 MB / 395 MB, free: 2.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.4644, allocations: 1.045 MB / 396.1 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4644, allocations: 0 / 396.1 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.4656, allocations: 0.8365 MB / 396.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/0.4662, allocations: 89.06 kB / 397 MB, free: 1.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/0.4724, allocations: 3.427 MB / 400.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006033/0.473, allocations: 0.8802 MB / 401.3 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.4733, allocations: 53.77 kB / 401.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.4735, allocations: 171.4 kB / 401.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4735, allocations: 1.375 kB / 401.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/0.5034, allocations: 12.18 MB / 413.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.5037, allocations: 213.1 kB / 413.9 MB, free: 5.449 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/2.916, allocations: 0 / 413.9 MB, free: 5.449 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat