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: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 95.09 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 202 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.7 MB / 246.8 MB, free: 9.754 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2661/0.2661, allocations: 46.18 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004889, allocations: 8 kB / 419.5 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1944, allocations: 63.54 MB / 483.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003432/0.1979, allocations: 2.357 MB / 485.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1999, allocations: 0.7712 MB / 486.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.2003, allocations: 8 kB / 486.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.2006, allocations: 59.56 kB / 486.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000488/0.2011, allocations: 91.64 kB / 486.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.2015, allocations: 99.84 kB / 486.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006339/0.2022, allocations: 382.6 kB / 486.8 MB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002889/0.2025, allocations: 129.1 kB / 487 MB, free: 220 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.2027, allocations: 131.4 kB / 487.1 MB, free: 88 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.203, allocations: 151.2 kB / 487.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.766e-05/0.2031, allocations: 20 kB / 487.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.16e-05/0.2031, allocations: 16 kB / 487.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.833e-05/0.2032, allocations: 59.7 kB / 487.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.2034, allocations: 188.7 kB / 487.5 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.2039, allocations: 402.4 kB / 487.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2039, allocations: 0 / 487.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2039, allocations: 4 kB / 487.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.2039, allocations: 0 / 487.9 MB, free: 15.25 MB / 366.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.001127/0.2051, allocations: 0.624 MB / 488.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2051, allocations: 9.109 kB / 488.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.2052, allocations: 44.38 kB / 488.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.2057, allocations: 274.6 kB / 488.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2057, allocations: 25.38 kB / 488.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/0.2058, allocations: 32.38 kB / 488.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.2066, allocations: 378.2 kB / 489.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.2066, allocations: 0 / 489.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.2067, allocations: 16 kB / 489.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2067, allocations: 8 kB / 489.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006983/0.2074, allocations: 290.8 kB / 489.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002276/0.2097, allocations: 1.365 MB / 491 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.2103, allocations: 206.6 kB / 491.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002389/0.2105, allocations: 95.55 kB / 491.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.2106, allocations: 7.938 kB / 491.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.2106, allocations: 38.5 kB / 491.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.164e-06/0.2106, allocations: 0 / 491.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009506/0.2116, allocations: 285.2 kB / 491.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.2117, allocations: 132.5 kB / 491.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.2122, allocations: 333.7 kB / 492 MB, free: 10.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.2122, allocations: 29.7 kB / 492.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.2124, allocations: 243.5 kB / 492.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.546e-05/0.2125, allocations: 55.38 kB / 492.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-05/0.2126, allocations: 29.7 kB / 492.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.2128, allocations: 350.7 kB / 492.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.213, allocations: 84.52 kB / 492.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.2134, allocations: 184.1 kB / 493 MB, free: 9.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006112/0.214, allocations: 275.1 kB / 493.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.214, allocations: 7.938 kB / 493.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007831/0.2148, allocations: 329.4 kB / 493.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.2149, allocations: 6.344 kB / 493.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.2149, allocations: 4 kB / 493.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.2149, allocations: 8.312 kB / 493.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/0.2153, allocations: 107.9 kB / 493.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.2154, allocations: 4 kB / 493.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.2157, allocations: 59.52 kB / 493.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.2157, allocations: 8 kB / 493.8 MB, free: 8.977 MB / 366.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.0001658/0.2159, allocations: 153.7 kB / 493.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.216, allocations: 35.61 kB / 494 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.64e-05/0.2161, allocations: 34.41 kB / 494 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2161, allocations: 4 kB / 494 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.2161, allocations: 0 / 494 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.768e-06/0.2161, allocations: 4 kB / 494 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.2169, allocations: 0.5914 MB / 494.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.217, allocations: 0 / 494.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.2173, allocations: 72.09 kB / 494.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.2173, allocations: 4 kB / 494.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2173, allocations: 7.938 kB / 494.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.2173, allocations: 7.938 kB / 494.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.2173, allocations: 0 / 494.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000615/0.2179, allocations: 422.5 kB / 495.1 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.218, allocations: 104.7 kB / 495.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.2181, allocations: 15.88 kB / 495.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.2183, allocations: 19.98 kB / 495.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.726e-05/0.2184, allocations: 15.98 kB / 495.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.2185, allocations: 4 kB / 495.3 MB, free: 7.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002985/0.2188, allocations: 243.2 kB / 495.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2188, allocations: 0 / 495.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.2192, allocations: 71.75 kB / 495.6 MB, free: 7.051 MB / 366.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.0001569/0.2194, allocations: 107.1 kB / 495.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.22, allocations: 211.9 kB / 495.9 MB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.22, allocations: 7.938 kB / 495.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.2203, allocations: 88.58 kB / 496 MB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.2208, allocations: 35.84 kB / 496 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.222, allocations: 0.7095 MB / 496.7 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.2224, allocations: 0.7755 MB / 497.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.2225, allocations: 30.2 kB / 497.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.2226, allocations: 19.44 kB / 497.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2226, allocations: 0 / 497.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of Templates: time 0.005044/0.2276, allocations: 1.611 MB / 499.1 MB, free: 3.387 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches