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.001868/0.001869, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 198 kB / 16.53 MB, free: 6.391 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.724/1.724, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04868/0.04868, allocations: 9.102 MB / 278.9 MB, free: 12.18 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.00153/0.00153, allocations: 63.91 kB / 338.1 MB, free: 25.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1324, allocations: 48.16 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.02519/0.1576, allocations: 17.52 MB / 403.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.1609, allocations: 2.418 MB / 406.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.384e-05/0.161, allocations: 0 / 406.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.1623, allocations: 383.3 kB / 406.6 MB, free: 4.738 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.009201/0.1716, allocations: 3.103 MB / 409.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.847e-05/0.1717, allocations: 19.91 kB / 409.7 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.1719, allocations: 187.1 kB / 409.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.047e-05/0.172, allocations: 13.55 kB / 409.9 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.1723, allocations: 95.45 kB / 410 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1724, allocations: 59.72 kB / 410.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.1724, allocations: 4 kB / 410.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01044/0.1829, allocations: 6.242 MB / 416.3 MB, free: 11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.677e-05/0.183, allocations: 27.78 kB / 416.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.1831, allocations: 51.69 kB / 416.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00686/0.19, allocations: 2.791 MB / 419.2 MB, free: 8.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.19, allocations: 4 kB / 419.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.19, allocations: 0 / 419.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.19, allocations: 0 / 419.2 MB, free: 8.117 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.002164/0.1922, allocations: 0.6627 MB / 419.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/0.1923, allocations: 16.02 kB / 419.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.79e-05/0.1924, allocations: 38.56 kB / 419.9 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.1926, allocations: 31.78 kB / 419.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.1928, allocations: 206.1 kB / 420.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.1929, allocations: 4 kB / 420.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.1929, allocations: 4 kB / 420.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.1933, allocations: 158.5 kB / 420.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1933, allocations: 0 / 420.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1933, allocations: 0 / 420.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1934, allocations: 7.984 kB / 420.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.1938, allocations: 192.2 kB / 420.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003886/0.1942, allocations: 262.5 kB / 420.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.1946, allocations: 190.7 kB / 420.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.1949, allocations: 165.9 kB / 421.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2341/0.4291, allocations: 10.94 MB / 432 MB, free: 42.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.4292, allocations: 31.17 kB / 432.1 MB, free: 42.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 4.078e-06/0.4292, allocations: 1.312 kB / 432.1 MB, free: 42.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.001292/0.4305, allocations: 460.9 kB / 432.5 MB, free: 42.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.4305, allocations: 53.06 kB / 432.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.4307, allocations: 131.8 kB / 432.7 MB, free: 42.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.4307, allocations: 26.8 kB / 432.7 MB, free: 42.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.4307, allocations: 88.12 kB / 432.8 MB, free: 42.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.4308, allocations: 106.9 kB / 432.9 MB, free: 42.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.4309, allocations: 34.48 kB / 433 MB, free: 42.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.535e-05/0.431, allocations: 322.2 kB / 433.3 MB, free: 41.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.4313, allocations: 122.8 kB / 433.4 MB, free: 41.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.4315, allocations: 123.2 kB / 433.5 MB, free: 41.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005388/0.4321, allocations: 288.4 kB / 433.8 MB, free: 41.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4321, allocations: 0 / 433.8 MB, free: 41.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005624/0.4326, allocations: 341.6 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.4327, allocations: 8.75 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4327, allocations: 3.656 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.4327, allocations: 1.406 kB / 434.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.4329, allocations: 19.61 kB / 434.2 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.4329, allocations: 4.938 kB / 434.2 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.433, allocations: 30.58 kB / 434.2 MB, free: 41.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.4331, allocations: 6.156 kB / 434.2 MB, free: 41.51 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 7.401e-05/0.4331, allocations: 114.9 kB / 434.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.4332, allocations: 9.969 kB / 434.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007533/0.4339, allocations: 366.5 kB / 434.7 MB, free: 41.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.434, allocations: 11.7 kB / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.434, allocations: 0 / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.434, allocations: 5.766 kB / 434.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003392/0.4343, allocations: 280.7 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4343, allocations: 0 / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.4345, allocations: 20 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4345, allocations: 0 / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.4345, allocations: 1.281 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4345, allocations: 2.469 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.4345, allocations: 1.188 kB / 435 MB, free: 40.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007139/0.4352, allocations: 373.2 kB / 435.4 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/0.4353, allocations: 99.95 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.4354, allocations: 2.25 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4355, allocations: 16.31 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.825e-05/0.4355, allocations: 7.031 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.4356, allocations: 2.375 kB / 435.5 MB, free: 40.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.67e-05/0.4356, allocations: 106.4 kB / 435.6 MB, free: 40.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4357, allocations: 0 / 435.6 MB, free: 40.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00221/0.4379, allocations: 486.6 kB / 436.1 MB, free: 40.55 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.003761/0.4416, allocations: 1.522 MB / 437.6 MB, free: 39.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008154/0.4425, allocations: 303.9 kB / 437.9 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4425, allocations: 0 / 437.9 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.4429, allocations: 166.2 kB / 438 MB, free: 39.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.4435, allocations: 69.05 kB / 438.1 MB, free: 39.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.447, allocations: 2.347 MB / 440.5 MB, free: 37.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.4472, allocations: 0.7189 MB / 441.2 MB, free: 37.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.4473, allocations: 26.55 kB / 441.2 MB, free: 37.19 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.4474, allocations: 40.56 kB / 441.2 MB, free: 37.16 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4474, allocations: 0 / 441.2 MB, free: 37.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06071/0.5081, allocations: 22.65 MB / 463.9 MB, free: 18.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.105/9.613, allocations: 15.98 kB / 463.9 MB, free: 18.69 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)