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.001067/0.001067, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.98 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09872, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00941/0.1082, allocations: 8.25 MB / 367.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004721/0.1129, allocations: 2.747 MB / 369.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008129/0.1138, allocations: 23.94 kB / 369.9 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.1154, allocations: 0.5558 MB / 370.5 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.1167, allocations: 480.2 kB / 371 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007424/0.1175, allocations: 271.6 kB / 371.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1548/0.2723, allocations: 1.504 MB / 372.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.2734, allocations: 0.5803 MB / 373.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.2746, allocations: 0.5674 MB / 373.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.2761, allocations: 0.6103 MB / 374.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004379/0.2766, allocations: 141.1 kB / 374.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007292/0.2774, allocations: 182.2 kB / 374.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003029/0.2777, allocations: 286.1 kB / 375.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000937/0.2786, allocations: 0.6751 MB / 375.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.2803, allocations: 1.759 MB / 377.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2804, allocations: 1.375 kB / 377.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2804, allocations: 0 / 377.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.2804, allocations: 0.9375 kB / 377.5 MB, free: 10.52 MB / 302.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.002208/0.2826, allocations: 1.484 MB / 379 MB, free: 9.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2826, allocations: 10.47 kB / 379 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007153/0.2834, allocations: 201.8 kB / 379.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.2845, allocations: 0.7655 MB / 380 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/0.2845, allocations: 73.77 kB / 380 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.2847, allocations: 96.77 kB / 380.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.2862, allocations: 0.9438 MB / 381.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.2862, allocations: 11.3 kB / 381.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-05/0.2863, allocations: 43.88 kB / 381.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.2863, allocations: 27.97 kB / 381.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.2875, allocations: 0.6465 MB / 381.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004629/0.2922, allocations: 3.902 MB / 385.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.2928, allocations: 450.5 kB / 386.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005449/0.2934, allocations: 273.7 kB / 386.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.2934, allocations: 2.938 kB / 386.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.2935, allocations: 45.8 kB / 386.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.743e-06/0.2935, allocations: 0 / 386.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002615/0.2961, allocations: 1.536 MB / 388 MB, free: 4.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.2961, allocations: 93.23 kB / 388.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009955/0.2971, allocations: 0.8434 MB / 388.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.2972, allocations: 31.67 kB / 389 MB, free: 4.219 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.2974, allocations: 0.5686 MB / 389.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-05/0.2975, allocations: 158.8 kB / 389.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.2977, allocations: 135.5 kB / 389.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.382e-05/0.2978, allocations: 333.4 kB / 390.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/0.2981, allocations: 177.5 kB / 390.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.2985, allocations: 472.4 kB / 390.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007574/0.2993, allocations: 0.6712 MB / 391.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2993, allocations: 14.19 kB / 391.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001202/0.3005, allocations: 0.7849 MB / 392.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3005, allocations: 9.906 kB / 392.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.3005, allocations: 9.562 kB / 392.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002597/0.3008, allocations: 90.28 kB / 392.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/0.3013, allocations: 151.7 kB / 392.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.3033, allocations: 3.143 MB / 395.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006336/0.304, allocations: 43.14 kB / 395.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.304, allocations: 35.59 kB / 395.7 MB, free: 14.78 MB / 318.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.000391/0.3044, allocations: 268.2 kB / 396 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3045, allocations: 92.06 kB / 396.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009711/0.3055, allocations: 0.4992 MB / 396.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.435e-06/0.3055, allocations: 16.23 kB / 396.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3056, allocations: 1.219 kB / 396.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3056, allocations: 0.9688 kB / 396.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3078, allocations: 1.476 MB / 398.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3078, allocations: 6.969 kB / 398.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.3081, allocations: 67.81 kB / 398.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001998/0.3083, allocations: 72.05 kB / 398.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.3083, allocations: 8.125 kB / 398.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.3109, allocations: 3.137 MB / 401.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/0.3109, allocations: 6.328 kB / 401.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3124, allocations: 0.7931 MB / 402.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.3128, allocations: 197.1 kB / 402.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.3129, allocations: 17.11 kB / 402.4 MB, free: 9.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.3133, allocations: 23.27 kB / 402.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.3134, allocations: 43.55 kB / 402.4 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.3135, allocations: 13.81 kB / 402.4 MB, free: 9.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008078/0.3143, allocations: 0.5788 MB / 403 MB, free: 9.102 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3143, allocations: 0 / 403 MB, free: 9.102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008914/0.3152, allocations: 214.8 kB / 403.2 MB, free: 9.078 MB / 318.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.0002276/0.3154, allocations: 117.7 kB / 403.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.3169, allocations: 0.7071 MB / 404.1 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3169, allocations: 0 / 404.1 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007742/0.3177, allocations: 456.3 kB / 404.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3187, allocations: 216.2 kB / 404.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002625/0.3213, allocations: 1.743 MB / 406.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.322, allocations: 1.016 MB / 407.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003833/0.3224, allocations: 105.6 kB / 407.6 MB, free: 6.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.3225, allocations: 59.56 kB / 407.6 MB, free: 6.113 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3225, allocations: 0 / 407.6 MB, free: 6.113 MB / 318.1 MB Notification: Performance of Templates: time 0.01886/0.3414, allocations: 10.73 MB / 418.4 MB, free: 12.11 MB / 334.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 -s cvode -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