Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001306/0.001306, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 64.08 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2391, allocations: 50.55 MB / 410.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01024/0.2493, allocations: 8.252 MB / 418.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004929/0.2543, allocations: 2.758 MB / 421.2 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008538/0.2551, allocations: 27.94 kB / 421.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.2567, allocations: 0.5832 MB / 421.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.2579, allocations: 0.4963 MB / 422.3 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.2585, allocations: 279.6 kB / 422.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.2603, allocations: 1.502 MB / 424.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006784/0.261, allocations: 398.9 kB / 424.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008289/0.2618, allocations: 0.5836 MB / 425.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007062/0.2626, allocations: 0.6028 MB / 425.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.2627, allocations: 140 kB / 425.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003381/0.2631, allocations: 184 kB / 426 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.2633, allocations: 298.9 kB / 426.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006344/0.264, allocations: 0.6687 MB / 427 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.266, allocations: 1.763 MB / 428.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.266, allocations: 0 / 428.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.266, allocations: 0 / 428.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.266, allocations: 0 / 428.7 MB, free: 14.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002615/0.2687, allocations: 1.521 MB / 430.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2687, allocations: 8.031 kB / 430.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007982/0.2695, allocations: 212 kB / 430.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.2708, allocations: 0.7704 MB / 431.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.162e-05/0.2709, allocations: 66 kB / 431.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.271, allocations: 104 kB / 431.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.2727, allocations: 0.9425 MB / 432.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.2727, allocations: 4 kB / 432.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.484e-05/0.2728, allocations: 44 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.2729, allocations: 27.98 kB / 432.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.2742, allocations: 0.6481 MB / 433.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005541/0.2797, allocations: 3.927 MB / 437 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008389/0.2806, allocations: 421 kB / 437.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/0.2812, allocations: 256.7 kB / 437.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.2812, allocations: 8 kB / 437.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.2813, allocations: 42.48 kB / 437.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.044e-06/0.2813, allocations: 0 / 437.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003168/0.2844, allocations: 1.568 MB / 439.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.2845, allocations: 85.05 kB / 439.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.2857, allocations: 0.8411 MB / 440.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.2858, allocations: 33.7 kB / 440.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005124/0.2863, allocations: 0.5814 MB / 440.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.2864, allocations: 174.5 kB / 441 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.2866, allocations: 130.6 kB / 441.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2868, allocations: 338 kB / 441.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.2872, allocations: 177.8 kB / 441.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006149/0.2878, allocations: 467.6 kB / 442.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.2889, allocations: 0.6762 MB / 442.7 MB, free: 8 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.2889, allocations: 8 kB / 442.8 MB, free: 0 / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00147/0.2903, allocations: 0.7908 MB / 443.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.2904, allocations: 8 kB / 443.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.2904, allocations: 12 kB / 443.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.2907, allocations: 85.88 kB / 443.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.2912, allocations: 159.7 kB / 443.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.2941, allocations: 3.126 MB / 446.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005997/0.2947, allocations: 55.92 kB / 447 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.2948, allocations: 32 kB / 447 MB, free: 11.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004387/0.2952, allocations: 265.5 kB / 447.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.2953, allocations: 87.44 kB / 447.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.2964, allocations: 0.5032 MB / 447.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2964, allocations: 4 kB / 447.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.2964, allocations: 0 / 447.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2964, allocations: 4 kB / 447.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.2988, allocations: 1.474 MB / 449.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.2988, allocations: 4 kB / 449.4 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.2991, allocations: 75.89 kB / 449.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/0.2994, allocations: 73.89 kB / 449.5 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.2994, allocations: 8 kB / 449.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/0.3022, allocations: 3.123 MB / 452.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3022, allocations: 0 / 452.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.3036, allocations: 0.8058 MB / 453.4 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.3039, allocations: 212.6 kB / 453.6 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.304, allocations: 15.88 kB / 453.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/0.3045, allocations: 35.95 kB / 453.7 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.3045, allocations: 43.64 kB / 453.7 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.3046, allocations: 12 kB / 453.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008399/0.3054, allocations: 0.5732 MB / 454.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3054, allocations: 0 / 454.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008624/0.3063, allocations: 211.9 kB / 454.5 MB, free: 3.469 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002109/0.3065, allocations: 123.2 kB / 454.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.3078, allocations: 0.676 MB / 455.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3078, allocations: 0 / 455.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007282/0.3085, allocations: 445.7 kB / 455.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3096, allocations: 234.5 kB / 456 MB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.3126, allocations: 1.782 MB / 457.8 MB, free: 116 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006918/0.3133, allocations: 1.017 MB / 458.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.3136, allocations: 99.34 kB / 458.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.3138, allocations: 59.42 kB / 458.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3138, allocations: 4 kB / 458.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of Templates: time 0.02155/0.3353, allocations: 10.97 MB / 469.9 MB, free: 4.074 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches