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.000946/0.0009461, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009314/0.0009314, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.4 MB / 222.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04148/0.04148, allocations: 9.058 MB / 279.4 MB, free: 12.15 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.0004805/0.0004806, allocations: 12 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08643, allocations: 49.19 MB / 388.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01565/0.1021, allocations: 14.65 MB / 403 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1048, allocations: 2.195 MB / 405.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.216e-05/0.1049, allocations: 3.938 kB / 405.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009879/0.1059, allocations: 334.9 kB / 405.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007221/0.1131, allocations: 2.593 MB / 408.1 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.005e-05/0.1132, allocations: 7.984 kB / 408.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.1134, allocations: 135.7 kB / 408.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.047e-05/0.1135, allocations: 13.5 kB / 408.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002845/0.1137, allocations: 127.5 kB / 408.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.907e-05/0.1139, allocations: 55.77 kB / 408.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1139, allocations: 3.938 kB / 408.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009642/0.1235, allocations: 6.158 MB / 414.6 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.081e-05/0.1236, allocations: 23.91 kB / 414.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.461e-05/0.1237, allocations: 45.64 kB / 414.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002541/0.1262, allocations: 1.412 MB / 416.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1262, allocations: 4 kB / 416.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1262, allocations: 0 / 416.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.1263, allocations: 0 / 416.1 MB, free: 12.85 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.001154/0.1274, allocations: 0.6665 MB / 416.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1275, allocations: 8.031 kB / 416.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.005e-05/0.1275, allocations: 50.48 kB / 416.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.1277, allocations: 39.67 kB / 416.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.1278, allocations: 175 kB / 417.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1278, allocations: 7.984 kB / 417.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.1278, allocations: 7.984 kB / 417.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.1282, allocations: 170.5 kB / 417.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-06/0.1282, allocations: 0 / 417.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1282, allocations: 4 kB / 417.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1282, allocations: 3.984 kB / 417.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003913/0.1286, allocations: 216.2 kB / 417.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002763/0.1289, allocations: 274.4 kB / 417.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1292, allocations: 194.7 kB / 417.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1788/0.308, allocations: 10.75 MB / 428.7 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.308, allocations: 37 kB / 428.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 2.094e-06/0.308, allocations: 0 / 428.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.000956/0.309, allocations: 0.6434 MB / 429.3 MB, free: 45.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.309, allocations: 53.17 kB / 429.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.105e-05/0.3091, allocations: 128.5 kB / 429.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.287e-06/0.3091, allocations: 26.73 kB / 429.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.823e-05/0.3092, allocations: 89.45 kB / 429.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.967e-05/0.3093, allocations: 110.4 kB / 429.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-06/0.3093, allocations: 0 / 429.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.764e-05/0.3093, allocations: 326.1 kB / 430.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.3096, allocations: 129.1 kB / 430.2 MB, free: 45.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.3098, allocations: 127.6 kB / 430.3 MB, free: 45.35 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.31, allocations: 151.1 kB / 430.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.31, allocations: 0 / 430.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005281/0.3105, allocations: 357 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3106, allocations: 7.125 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.3106, allocations: 0.75 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.3106, allocations: 1.375 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.3107, allocations: 27.72 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3107, allocations: 1.281 kB / 430.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.3109, allocations: 35.72 kB / 430.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.3109, allocations: 1.938 kB / 430.9 MB, free: 45.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.311, allocations: 119.5 kB / 431 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.311, allocations: 16.62 kB / 431 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005823/0.3116, allocations: 392.2 kB / 431.4 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.3116, allocations: 7.469 kB / 431.4 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3116, allocations: 2.656 kB / 431.4 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3116, allocations: 1.766 kB / 431.4 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3118, allocations: 270.7 kB / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3118, allocations: 0 / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.3119, allocations: 23.98 kB / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.312, allocations: 1.812 kB / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.312, allocations: 4.438 kB / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.312, allocations: 0 / 431.7 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.312, allocations: 7.422 kB / 431.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.3126, allocations: 390.9 kB / 432.1 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.3126, allocations: 101.2 kB / 432.2 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.3126, allocations: 6.953 kB / 432.2 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3128, allocations: 20.52 kB / 432.2 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.3128, allocations: 12.39 kB / 432.2 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.3128, allocations: 1.594 kB / 432.2 MB, free: 44.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.917e-05/0.3129, allocations: 99.88 kB / 432.3 MB, free: 44.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3129, allocations: 0 / 432.3 MB, free: 44.58 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3141, allocations: 484.9 kB / 432.8 MB, free: 44.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002635/0.3168, allocations: 1.539 MB / 434.3 MB, free: 43.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005269/0.3173, allocations: 309.5 kB / 434.6 MB, free: 43.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3173, allocations: 4 kB / 434.6 MB, free: 43.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.3176, allocations: 177.3 kB / 434.8 MB, free: 43.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.318, allocations: 71.55 kB / 434.9 MB, free: 43.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3199, allocations: 1.36 MB / 436.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.32, allocations: 0.7238 MB / 437 MB, free: 42.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3202, allocations: 27.22 kB / 437 MB, free: 42.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.572e-05/0.3202, allocations: 36.27 kB / 437 MB, free: 42.11 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3202, allocations: 0.9375 kB / 437 MB, free: 42.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.3577, allocations: 22.32 MB / 459.4 MB, free: 25.03 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/0.3579, allocations: 182.5 kB / 459.5 MB, free: 24.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.408/2.766, allocations: 0.5469 kB / 459.5 MB, free: 24.78 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/linux/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) Environment - environmentSimulation: