Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.BasicComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.BasicComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",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.001279/0.001279, allocations: 105.1 kB / 17.33 MB, free: 5.996 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.001357/0.001357, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.355/1.355, allocations: 222.9 MB / 241.9 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1951/0.1951, allocations: 44.18 MB / 336.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 60.03 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09474, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.003921/0.0987, allocations: 3.54 MB / 472.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009765/0.09968, allocations: 0.7829 MB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.09984, allocations: 11.94 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1, allocations: 55.59 kB / 473.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1002, allocations: 99.16 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.1005, allocations: 119.8 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000399/0.1009, allocations: 0.51 MB / 473.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.1012, allocations: 250.1 kB / 474.2 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.1014, allocations: 215.2 kB / 474.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.1016, allocations: 231 kB / 474.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.1017, allocations: 48 kB / 474.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.208e-05/0.1018, allocations: 48 kB / 474.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.662e-05/0.1019, allocations: 115.6 kB / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.102, allocations: 250.8 kB / 475.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003915/0.1024, allocations: 0.5488 MB / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1024, allocations: 4 kB / 475.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1024, allocations: 4 kB / 475.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1025, allocations: 0 / 475.6 MB, free: 7.789 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001065/0.1035, allocations: 0.7564 MB / 476.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.1036, allocations: 12.03 kB / 476.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.53e-05/0.1036, allocations: 82.72 kB / 476.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.1037, allocations: 64.27 kB / 476.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.1041, allocations: 301.5 kB / 476.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.1041, allocations: 37.38 kB / 476.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.965e-05/0.1042, allocations: 52.36 kB / 476.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007108/0.1049, allocations: 467 kB / 477.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1049, allocations: 3.938 kB / 477.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.1049, allocations: 20 kB / 477.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1049, allocations: 12 kB / 477.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006164/0.1056, allocations: 319.8 kB / 477.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.1076, allocations: 1.697 MB / 479.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004922/0.1081, allocations: 237 kB / 479.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.1084, allocations: 141.2 kB / 479.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.1084, allocations: 4 kB / 479.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.1085, allocations: 38.56 kB / 479.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.273e-06/0.1085, allocations: 0 / 479.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.002517/0.111, allocations: 1.334 MB / 481.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.111, allocations: 85.09 kB / 481.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.1113, allocations: 266.5 kB / 481.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1113, allocations: 29.7 kB / 481.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.1114, allocations: 251.5 kB / 481.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.347e-05/0.1115, allocations: 130.2 kB / 481.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.956e-05/0.1116, allocations: 81.97 kB / 482 MB, free: 1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.983e-05/0.1117, allocations: 342.8 kB / 482.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.112, allocations: 104.8 kB / 482.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.1123, allocations: 212.3 kB / 482.6 MB, free: 312 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005386/0.1128, allocations: 339.7 kB / 483 MB, free: 15.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1128, allocations: 4 kB / 483 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007209/0.1136, allocations: 419.2 kB / 483.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.1136, allocations: 4 kB / 483.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1136, allocations: 4 kB / 483.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001085/0.1137, allocations: 33.09 kB / 483.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.1141, allocations: 127.8 kB / 483.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008916/0.115, allocations: 1.442 MB / 485 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.1153, allocations: 16 kB / 485 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.1153, allocations: 23.98 kB / 485 MB, free: 13.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001471/0.1154, allocations: 169.7 kB / 485.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.264e-05/0.1155, allocations: 23.72 kB / 485.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.1156, allocations: 38.17 kB / 485.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1156, allocations: 4 kB / 485.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1156, allocations: 0 / 485.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1156, allocations: 3.938 kB / 485.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009257/0.1165, allocations: 0.7192 MB / 486 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1166, allocations: 3.938 kB / 486 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000385/0.1169, allocations: 95.88 kB / 486.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.985e-05/0.117, allocations: 28.78 kB / 486.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.1171, allocations: 8 kB / 486.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008039/0.1179, allocations: 1.422 MB / 487.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1179, allocations: 0 / 487.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.1187, allocations: 0.6078 MB / 488.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.932e-05/0.1188, allocations: 120.8 kB / 488.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.1189, allocations: 8 kB / 488.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.1191, allocations: 23.92 kB / 488.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/0.1192, allocations: 31.89 kB / 488.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.1192, allocations: 16 kB / 488.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001432/0.1194, allocations: 182 kB / 488.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1194, allocations: 0 / 488.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000386/0.1198, allocations: 96 kB / 488.6 MB, free: 9.875 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.1209, allocations: 1.136 MB / 489.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006978/0.1216, allocations: 420.5 kB / 490.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1216, allocations: 0 / 490.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003355/0.1219, allocations: 259.3 kB / 490.4 MB, free: 8.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.1224, allocations: 40.55 kB / 490.4 MB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.1264, allocations: 3.683 MB / 494.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1267, allocations: 0.8035 MB / 494.9 MB, free: 3.273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.1268, allocations: 42.94 kB / 495 MB, free: 3.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.127, allocations: 135.4 kB / 495.1 MB, free: 3.102 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.127, allocations: 7.938 kB / 495.1 MB, free: 3.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.266/0.393, allocations: 6.234 MB / 0.4896 GB, free: 13.03 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.3932, allocations: 230.5 kB / 0.4898 GB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.516, allocations: 7.938 kB / 0.4898 GB, free: 12.76 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents_fmu --startTime=0 --stopTime=14 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1)