Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001733, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2383/0.2383, allocations: 46.13 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 79.86 kB / 480.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2972, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00387/0.3011, allocations: 2.679 MB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3024, allocations: 0.791 MB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3026, allocations: 5.5 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.3028, allocations: 73.12 kB / 0.5341 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00025/0.3031, allocations: 107.8 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.3034, allocations: 114.6 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.3038, allocations: 418.3 kB / 0.5347 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.3041, allocations: 149.7 kB / 0.5348 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.3043, allocations: 149.8 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.3045, allocations: 169.1 kB / 0.5351 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.3045, allocations: 32.34 kB / 0.5352 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.885e-05/0.3046, allocations: 33.5 kB / 0.5352 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.498e-05/0.3047, allocations: 77.69 kB / 0.5353 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.3049, allocations: 183.3 kB / 0.5354 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.3053, allocations: 427.6 kB / 0.5359 GB, free: 9.285 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3053, allocations: 1.375 kB / 0.5359 GB, free: 9.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3054, allocations: 0 / 0.5359 GB, free: 9.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3054, allocations: 4 kB / 0.5359 GB, free: 9.281 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001112/0.3065, allocations: 0.681 MB / 0.5365 GB, free: 8.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3065, allocations: 9.594 kB / 0.5365 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.374e-05/0.3066, allocations: 73.75 kB / 0.5366 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.155e-05/0.3067, allocations: 41.02 kB / 0.5366 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.3071, allocations: 281.7 kB / 0.5369 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.3071, allocations: 30.53 kB / 0.5369 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.3072, allocations: 29.16 kB / 0.537 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.3079, allocations: 374.7 kB / 0.5373 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3079, allocations: 0 / 0.5373 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.3079, allocations: 11.41 kB / 0.5373 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3079, allocations: 7.969 kB / 0.5373 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006766/0.3086, allocations: 268 kB / 0.5376 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.3108, allocations: 1.343 MB / 0.5389 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005177/0.3113, allocations: 198 kB / 0.5391 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.3116, allocations: 84.11 kB / 0.5392 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.3116, allocations: 1.906 kB / 0.5392 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3117, allocations: 40.75 kB / 0.5392 GB, free: 6.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3117, allocations: 1.188 kB / 0.5392 GB, free: 6.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008366/0.3125, allocations: 251.1 kB / 0.5395 GB, free: 6.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.3126, allocations: 135 kB / 0.5396 GB, free: 6.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.313, allocations: 339.3 kB / 0.5399 GB, free: 5.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3131, allocations: 30.7 kB / 0.5399 GB, free: 5.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.3132, allocations: 242.8 kB / 0.5402 GB, free: 5.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.3133, allocations: 58.3 kB / 0.5402 GB, free: 5.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.3134, allocations: 57.94 kB / 0.5403 GB, free: 5.598 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3136, allocations: 353.6 kB / 0.5406 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.3138, allocations: 75.03 kB / 0.5407 GB, free: 5.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.3142, allocations: 174.3 kB / 0.5409 GB, free: 5.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/0.3147, allocations: 255.8 kB / 0.5411 GB, free: 4.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3147, allocations: 0.9688 kB / 0.5411 GB, free: 4.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006827/0.3154, allocations: 314.1 kB / 0.5414 GB, free: 4.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3154, allocations: 9.531 kB / 0.5414 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3154, allocations: 3.562 kB / 0.5414 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3155, allocations: 4.5 kB / 0.5414 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.3159, allocations: 92.92 kB / 0.5415 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.3159, allocations: 4.406 kB / 0.5415 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/0.3162, allocations: 48.88 kB / 0.5416 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.3162, allocations: 13.11 kB / 0.5416 GB, free: 4.629 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.000161/0.3164, allocations: 160.4 kB / 0.5417 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.984e-05/0.3165, allocations: 30.41 kB / 0.5418 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.3166, allocations: 31.69 kB / 0.5418 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3166, allocations: 3.094 kB / 0.5418 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3166, allocations: 1.031 kB / 0.5418 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3166, allocations: 1 kB / 0.5418 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008869/0.3175, allocations: 0.598 MB / 0.5424 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3175, allocations: 1.188 kB / 0.5424 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.3178, allocations: 50.92 kB / 0.5424 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3179, allocations: 2.188 kB / 0.5424 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3179, allocations: 14.55 kB / 0.5424 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3179, allocations: 11.12 kB / 0.5425 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.3179, allocations: 6.156 kB / 0.5425 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.3185, allocations: 395.7 kB / 0.5428 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.3186, allocations: 106.4 kB / 0.5429 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.3187, allocations: 10.31 kB / 0.5429 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.3189, allocations: 12.11 kB / 0.543 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.005e-05/0.319, allocations: 26.5 kB / 0.543 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.319, allocations: 9.938 kB / 0.543 GB, free: 3.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.3193, allocations: 237.6 kB / 0.5432 GB, free: 3.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3193, allocations: 0 / 0.5432 GB, free: 3.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004018/0.3197, allocations: 66.83 kB / 0.5433 GB, free: 3.188 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0009295/0.3206, allocations: 0.9325 MB / 0.5442 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005598/0.3212, allocations: 195 kB / 0.5444 GB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3212, allocations: 1.25 kB / 0.5444 GB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.3214, allocations: 85.52 kB / 0.5445 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.3219, allocations: 22.88 kB / 0.5445 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.3261, allocations: 3 MB / 0.5474 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3265, allocations: 0.7753 MB / 0.5482 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.3267, allocations: 30.2 kB / 0.5482 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.3268, allocations: 103.4 kB / 0.5483 GB, free: 14.75 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3268, allocations: 0 / 0.5483 GB, free: 14.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02767/0.3545, allocations: 4.967 MB / 0.5532 GB, free: 9.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.478/8.832, allocations: 4.453 kB / 0.5532 GB, free: 9.863 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches