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.0008534/0.0008534, allocations: 86.02 kB / 15.06 MB, free: 1.09 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.001006/0.001006, allocations: 168.7 kB / 15.95 MB, free: 204 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.285/1.285, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0432/0.0432, allocations: 9.057 MB / 279.5 MB, free: 12.25 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.0004904/0.0004905, allocations: 15.94 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.0792, allocations: 49.18 MB / 388.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.MaxwellLoop): time 0.01613/0.09538, allocations: 16.2 MB / 404.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.09792, allocations: 2.303 MB / 406.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.354e-05/0.09801, allocations: 0 / 406.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007166/0.09874, allocations: 314.6 kB / 407.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005456/0.1042, allocations: 2.559 MB / 409.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.67e-05/0.1042, allocations: 7.984 kB / 409.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.1045, allocations: 183 kB / 410 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.26e-05/0.1045, allocations: 13.5 kB / 410 MB, free: 3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.1047, allocations: 87.52 kB / 410.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.266e-05/0.1048, allocations: 59.72 kB / 410.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.1048, allocations: 4 kB / 410.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007871/0.1127, allocations: 5.321 MB / 415.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.1127, allocations: 15.86 kB / 415.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.1128, allocations: 57.62 kB / 415.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.1149, allocations: 1.446 MB / 417 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1149, allocations: 0 / 417 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1149, allocations: 3.938 kB / 417 MB, free: 11.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1149, allocations: 4 kB / 417 MB, free: 11.98 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.001276/0.1162, allocations: 0.6548 MB / 417.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1162, allocations: 16.02 kB / 417.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.1163, allocations: 42.56 kB / 417.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.1164, allocations: 43.67 kB / 417.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.1166, allocations: 178.9 kB / 417.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1166, allocations: 4 kB / 417.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.1166, allocations: 7.984 kB / 417.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1169, allocations: 162.5 kB / 418.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1169, allocations: 4 kB / 418.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1169, allocations: 4 kB / 418.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.117, allocations: 3.984 kB / 418.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003768/0.1173, allocations: 216.2 kB / 418.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002357/0.1176, allocations: 274.4 kB / 418.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.1179, allocations: 194.7 kB / 418.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.1181, allocations: 173.9 kB / 418.9 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.161/0.2791, allocations: 10.71 MB / 429.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.2792, allocations: 42.3 kB / 429.7 MB, free: 45.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 3.125e-06/0.2792, allocations: 0 / 429.7 MB, free: 45.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.001155/0.2804, allocations: 483 kB / 430.2 MB, free: 45.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.2804, allocations: 59.34 kB / 430.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2806, allocations: 128.2 kB / 430.3 MB, free: 45.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2806, allocations: 27.45 kB / 430.4 MB, free: 45.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.2806, allocations: 89.05 kB / 430.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.2808, allocations: 104.1 kB / 430.6 MB, free: 45.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.2808, allocations: 1.188 kB / 430.6 MB, free: 45.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.2808, allocations: 330.8 kB / 430.9 MB, free: 44.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.2811, allocations: 129.8 kB / 431 MB, free: 44.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.2813, allocations: 135.9 kB / 431.1 MB, free: 44.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.2815, allocations: 148.5 kB / 431.3 MB, free: 44.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2815, allocations: 0.9062 kB / 431.3 MB, free: 44.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005216/0.282, allocations: 356.9 kB / 431.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2821, allocations: 7.969 kB / 431.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2821, allocations: 0.5625 kB / 431.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2821, allocations: 1.031 kB / 431.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.2822, allocations: 23.48 kB / 431.7 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2823, allocations: 2.312 kB / 431.7 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.2824, allocations: 28.75 kB / 431.7 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.2824, allocations: 11.67 kB / 431.7 MB, free: 44.68 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.643e-05/0.2825, allocations: 120.7 kB / 431.8 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.008e-05/0.2825, allocations: 14.33 kB / 431.8 MB, free: 44.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005863/0.2831, allocations: 388.6 kB / 432.2 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.2831, allocations: 7.953 kB / 432.2 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2831, allocations: 3.781 kB / 432.2 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2831, allocations: 1.672 kB / 432.2 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.2834, allocations: 268.8 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2834, allocations: 1.938 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2835, allocations: 21.73 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2835, allocations: 1.688 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.2835, allocations: 4.844 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2835, allocations: 0.7031 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2836, allocations: 5.297 kB / 432.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006412/0.2842, allocations: 386.2 kB / 432.9 MB, free: 44.19 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.299e-05/0.2843, allocations: 105.9 kB / 433 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.2843, allocations: 5.062 kB / 433 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.2844, allocations: 18.02 kB / 433 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.2845, allocations: 11.45 kB / 433 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.2845, allocations: 3.297 kB / 433 MB, free: 44.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.726e-05/0.2846, allocations: 107.9 kB / 433.2 MB, free: 44 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2846, allocations: 0 / 433.2 MB, free: 44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00137/0.286, allocations: 483.1 kB / 433.6 MB, free: 44 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.003028/0.289, allocations: 1.54 MB / 435.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005353/0.2895, allocations: 316.6 kB / 435.5 MB, free: 43.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2896, allocations: 0 / 435.5 MB, free: 43.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.2898, allocations: 176.1 kB / 435.6 MB, free: 43.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.2903, allocations: 68.09 kB / 435.7 MB, free: 43.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.292, allocations: 1.361 MB / 437.1 MB, free: 42.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.2922, allocations: 0.7188 MB / 437.8 MB, free: 41.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.2923, allocations: 24.02 kB / 437.8 MB, free: 41.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.2924, allocations: 36.81 kB / 437.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2924, allocations: 9.609 kB / 437.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.3266, allocations: 22.33 MB / 460.2 MB, free: 24.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/0.3267, allocations: 190.9 kB / 460.4 MB, free: 23.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.582/2.909, allocations: 0 / 460.4 MB, free: 23.93 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: