Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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 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(HelmholtzMedia.Examples.Validation.MaxwellLoop,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.MaxwellLoop,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop",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.0007481/0.000748, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005607/0.005607, allocations: 170.7 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05034/0.05034, allocations: 9.067 MB / 279.8 MB, free: 12.16 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005383/0.0005384, allocations: 12 kB / 339.8 MB, free: 25.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1221, allocations: 49.18 MB / 389 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.02216/0.1444, allocations: 17.24 MB / 406.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.148, allocations: 2.547 MB / 408.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.128e-05/0.1481, allocations: 0 / 408.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.1492, allocations: 347.6 kB / 409.2 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008158/0.1574, allocations: 2.665 MB / 411.8 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.129e-05/0.1574, allocations: 7.984 kB / 411.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.1577, allocations: 183.1 kB / 412 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.258e-05/0.1577, allocations: 9.562 kB / 412 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.158, allocations: 95.47 kB / 412.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.1581, allocations: 59.7 kB / 412.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.1581, allocations: 7.938 kB / 412.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01056/0.1687, allocations: 5.832 MB / 418 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.198e-05/0.1688, allocations: 15.92 kB / 418 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.1689, allocations: 85.38 kB / 418.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006299/0.1753, allocations: 2.639 MB / 420.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1753, allocations: 0 / 420.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.783e-06/0.1753, allocations: 0 / 420.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1753, allocations: 3.938 kB / 420.7 MB, free: 8.488 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00161/0.1769, allocations: 0.6628 MB / 421.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.4e-05/0.177, allocations: 8.031 kB / 421.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.495e-05/0.1771, allocations: 46.48 kB / 421.5 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1773, allocations: 35.78 kB / 421.5 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.1775, allocations: 194.4 kB / 421.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1776, allocations: 4 kB / 421.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.1776, allocations: 4 kB / 421.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.178, allocations: 171.2 kB / 421.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.178, allocations: 0 / 421.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.178, allocations: 4 kB / 421.9 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.1781, allocations: 4 kB / 421.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.1785, allocations: 212.2 kB / 422.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003738/0.1789, allocations: 274.5 kB / 422.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.1793, allocations: 190.8 kB / 422.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.1796, allocations: 173.1 kB / 422.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2312/0.4108, allocations: 10.72 MB / 433.4 MB, free: 42.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.4109, allocations: 37.53 kB / 433.5 MB, free: 42.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 3.206e-06/0.4109, allocations: 1.844 kB / 433.5 MB, free: 42.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.00132/0.4122, allocations: 492.8 kB / 433.9 MB, free: 42.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.4123, allocations: 55.53 kB / 434 MB, free: 42.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.4125, allocations: 130.6 kB / 434.1 MB, free: 42.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.4125, allocations: 28.36 kB / 434.1 MB, free: 42.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.4126, allocations: 87.81 kB / 434.2 MB, free: 41.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.4127, allocations: 112.4 kB / 434.3 MB, free: 41.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.4128, allocations: 28.3 kB / 434.4 MB, free: 41.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4129, allocations: 324.5 kB / 434.7 MB, free: 41.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.4132, allocations: 130.9 kB / 434.8 MB, free: 41.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.4136, allocations: 132 kB / 434.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006212/0.4142, allocations: 317.8 kB / 435.3 MB, free: 41.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4142, allocations: 0 / 435.3 MB, free: 41.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000636/0.4148, allocations: 364.3 kB / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.4149, allocations: 6.875 kB / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.4149, allocations: 1.562 kB / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.4149, allocations: 0 / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.4151, allocations: 23.84 kB / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.4151, allocations: 5.562 kB / 435.6 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.4153, allocations: 28.39 kB / 435.7 MB, free: 41.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.4153, allocations: 2.875 kB / 435.7 MB, free: 41.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.102e-05/0.4154, allocations: 118.8 kB / 435.8 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.4154, allocations: 17.44 kB / 435.8 MB, free: 41.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007286/0.4161, allocations: 389.8 kB / 436.2 MB, free: 41.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.4162, allocations: 5.844 kB / 436.2 MB, free: 41.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4162, allocations: 4.531 kB / 436.2 MB, free: 41.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.4162, allocations: 1.031 kB / 436.2 MB, free: 41.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.4164, allocations: 266.3 kB / 436.5 MB, free: 40.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4164, allocations: 2.844 kB / 436.5 MB, free: 40.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.4165, allocations: 26.53 kB / 436.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4165, allocations: 5.562 kB / 436.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.4166, allocations: 1.219 kB / 436.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4166, allocations: 0.6094 kB / 436.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4166, allocations: 0 / 436.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005987/0.4172, allocations: 393.1 kB / 436.9 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.4172, allocations: 102.7 kB / 437 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.4173, allocations: 4.781 kB / 437 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.4174, allocations: 17.69 kB / 437 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.4174, allocations: 10.36 kB / 437 MB, free: 40.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.4175, allocations: 2.188 kB / 437 MB, free: 40.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.81e-05/0.4175, allocations: 96.73 kB / 437.1 MB, free: 40.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4175, allocations: 5.125 kB / 437.1 MB, free: 40.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001739/0.4193, allocations: 493.5 kB / 437.6 MB, free: 40.41 MB / 318.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: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003154/0.4224, allocations: 1.539 MB / 439.1 MB, free: 39.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006371/0.4231, allocations: 318.8 kB / 439.4 MB, free: 39.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4231, allocations: 4 kB / 439.4 MB, free: 39.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.4234, allocations: 172.2 kB / 439.6 MB, free: 39.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.4239, allocations: 67.83 kB / 439.7 MB, free: 39.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.427, allocations: 2.483 MB / 442.2 MB, free: 37.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.4272, allocations: 0.7179 MB / 442.9 MB, free: 36.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.4273, allocations: 29.33 kB / 442.9 MB, free: 36.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.791e-05/0.4274, allocations: 36.34 kB / 442.9 MB, free: 36.93 MB / 318.1 MB Notification: Performance of SimCode: time 4.7e-07/0.4274, allocations: 0 / 442.9 MB, free: 36.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0474/0.4748, allocations: 22.23 MB / 465.2 MB, free: 18.85 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/0.475, allocations: 197.3 kB / 465.4 MB, free: 18.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.969/3.444, allocations: 0 / 465.4 MB, free: 18.59 MB / 318.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_Validation_MaxwellLoop.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.MaxwellLoop.pipe 2>&1)