Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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(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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001451/0.001451, allocations: 109.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2636, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009275/0.2729, allocations: 8.234 MB / 418.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005016/0.2779, allocations: 2.746 MB / 420.9 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.2792, allocations: 27.94 kB / 420.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.2809, allocations: 0.5558 MB / 421.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001336/0.2822, allocations: 476.2 kB / 422 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.2828, allocations: 275.6 kB / 422.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001501/0.2843, allocations: 1.498 MB / 423.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007426/0.2851, allocations: 0.5808 MB / 424.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007072/0.2858, allocations: 0.5758 MB / 424.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006345/0.2864, allocations: 0.6105 MB / 425.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.2866, allocations: 144 kB / 425.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.2869, allocations: 188 kB / 425.8 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2871, allocations: 282.9 kB / 426.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005333/0.2877, allocations: 0.6804 MB / 426.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001664/0.2893, allocations: 1.761 MB / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2894, allocations: 4 kB / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2894, allocations: 0 / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.2894, allocations: 0 / 428.5 MB, free: 14.89 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.002398/0.2918, allocations: 1.476 MB / 430 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2919, allocations: 12.02 kB / 430 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007195/0.2926, allocations: 195.3 kB / 430.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.2938, allocations: 0.7658 MB / 431 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.585e-05/0.2939, allocations: 74 kB / 431.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.294, allocations: 99.91 kB / 431.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.2955, allocations: 0.958 MB / 432.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.2955, allocations: 3.938 kB / 432.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.88e-05/0.2956, allocations: 40 kB / 432.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.2957, allocations: 24 kB / 432.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.2968, allocations: 0.6519 MB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.3015, allocations: 3.903 MB / 436.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006941/0.3022, allocations: 459 kB / 437.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000586/0.3028, allocations: 276.6 kB / 437.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.3029, allocations: 7.984 kB / 437.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.3029, allocations: 38.56 kB / 437.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.485e-06/0.3029, allocations: 0 / 437.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002853/0.3058, allocations: 1.543 MB / 439 MB, free: 3.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3059, allocations: 93.05 kB / 439.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.3069, allocations: 0.841 MB / 440 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.307, allocations: 33.7 kB / 440 MB, free: 2.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.3073, allocations: 0.5604 MB / 440.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3075, allocations: 161.7 kB / 440.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.3076, allocations: 138.5 kB / 440.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3078, allocations: 330 kB / 441.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.3081, allocations: 177.9 kB / 441.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/0.3086, allocations: 471.6 kB / 441.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/0.3096, allocations: 0.6762 MB / 442.5 MB, free: 140 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3096, allocations: 0 / 442.5 MB, free: 140 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001322/0.3109, allocations: 0.7867 MB / 443.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3109, allocations: 8 kB / 443.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.311, allocations: 19.83 kB / 443.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.3112, allocations: 89.86 kB / 443.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.3117, allocations: 159.7 kB / 443.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.314, allocations: 3.13 MB / 446.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005672/0.3146, allocations: 40.17 kB / 446.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.3146, allocations: 40 kB / 446.8 MB, free: 11.57 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.0003983/0.315, allocations: 273.4 kB / 447 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3152, allocations: 86.97 kB / 447.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009859/0.3161, allocations: 0.5032 MB / 447.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3162, allocations: 4 kB / 447.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3162, allocations: 4 kB / 447.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3162, allocations: 3.984 kB / 447.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.3183, allocations: 1.474 MB / 449.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.3184, allocations: 4 kB / 449.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.3187, allocations: 75.89 kB / 449.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/0.3189, allocations: 69.89 kB / 449.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3189, allocations: 16 kB / 449.3 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/0.3212, allocations: 3.127 MB / 452.4 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3213, allocations: 3.938 kB / 452.4 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.3225, allocations: 0.7975 MB / 453.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.3228, allocations: 208 kB / 453.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.219e-05/0.3229, allocations: 11.94 kB / 453.4 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.3233, allocations: 31.98 kB / 453.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.3234, allocations: 39.64 kB / 453.5 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.3235, allocations: 15.98 kB / 453.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007304/0.3242, allocations: 0.5732 MB / 454.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3242, allocations: 0 / 454.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008141/0.325, allocations: 212 kB / 454.3 MB, free: 3.598 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.0002265/0.3253, allocations: 126.7 kB / 454.4 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3265, allocations: 0.703 MB / 455.1 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3265, allocations: 0 / 455.1 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/0.3271, allocations: 473.6 kB / 455.6 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009826/0.3281, allocations: 226.5 kB / 455.8 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.3308, allocations: 1.779 MB / 457.6 MB, free: 204 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.3314, allocations: 1.009 MB / 458.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.3316, allocations: 63.42 kB / 458.6 MB, free: 15.1 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3316, allocations: 0 / 458.6 MB, free: 15.1 MB / 382.1 MB Notification: Performance of Templates: time 0.02399/0.3556, allocations: 21.58 MB / 480.2 MB, free: 9.555 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches